0

Halowing M4
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Halowing M4

by jwtadmin on Thu Sep 12, 2019 4:02 pm

It looks like the Halowing M4 eye example is not a micropython app?

It boots and acts like it - but there is no code.py

In reading it looks like you need to use the teensy example if you want to build and customize - using Arduino - however there is no M4 board definition for the new Halowing.

I'd like to customize the app and turn on the side mount Neopixels - since they aren't part of the example code.

Any help?

jwtadmin
 
Posts: 40
Joined: Thu Jan 07, 2016 2:50 pm

Re: Halowing M4

by pburgess on Thu Sep 12, 2019 4:27 pm

If you want to compile the eyes code from source, instructions and a link to the code is here:
https://learn.adafruit.com/adafruit-mon ... ource-code
Note that there are a ton of library dependencies, and you'll need the latest Adafruit SAMD support through the Boards Manager.

The NeoPixels are on digital pin 8, I think. There will be a guide with all the pinouts and such soon, I appreciate your patience.

And yeah, it’s an Arduino project but leverages the flash filesystem (which appears as “CIRCUITPY” whether or not CircuitPython is currently installed on the board) to make customization easier. Access the flash filesystem from Arduino is a recent addition, so the original name stuck.

pburgess
 
Posts: 4023
Joined: Sun Oct 26, 2008 2:29 am

Re: Halowing M4

by jwtadmin on Thu Sep 12, 2019 4:41 pm

Cool! Many thanks!

jwtadmin
 
Posts: 40
Joined: Thu Jan 07, 2016 2:50 pm

Re: Halowing M4

by jwtadmin on Fri Sep 13, 2019 4:29 pm

Looks like I am missing something in my understanding

The code won't compile for the HalowingM4 but it will for the MaskM4

Error is

/Users/turner/Documents/Arduino/M4_Eyes/M4_Eyes.ino: In function 'void loop()':
M4_Eyes:822: error: 'seesaw' was not declared in this scope
seesaw.analogRead(lightSensorPin - 100) : analogRead(lightSensorPin);
^

'seesaw' was not declared in this scope

jwtadmin
 
Posts: 40
Joined: Thu Jan 07, 2016 2:50 pm

Re: Halowing M4

by jwtadmin on Fri Sep 13, 2019 5:38 pm

Looks like the EYE_NUM check wasn't done on the light sensor portion.

Apparently the mask eye's have a seesaw chip and the halowing does not.

I was able to "fix" it by removing the seesaw reference
analogRead(lightSensorPin - 100) : analogRead(lightSensorPin);

Now, unfortunately, the position of the eye is too high on the display

IMG_7020.jpg
IMG_7020.jpg (135.22 KiB) Viewed 107 times

jwtadmin
 
Posts: 40
Joined: Thu Jan 07, 2016 2:50 pm

Re: Halowing M4

by lenzi on Fri Sep 13, 2019 11:47 pm

Total noob here, but I tired to upload the *.uf2 code to the halloWing M4 in the boot loader even though thinking it was already running to get to a *.py file or some file I could look at in a text editor and now the display says "code done running, Waiting for reload . soft reboot.

What do I do? Where can I go? I just want to see the python code to try and learn.

lenzi
 
Posts: 2
Joined: Fri Sep 13, 2019 11:35 pm

Re: Halowing M4

by jwtadmin on Sat Sep 14, 2019 9:15 am

You need to get the board into the bootloader mode first (double click the reset button)

The board will mount a drive called HALLOM4BOOT in there you will see current.uf2 and a text file called INFO_UF2.TXT

if you want to reload the hallowingM4 example UF2 download it from here:
https://learn.adafruit.com/adafruit-mon ... quickstart

And grab the hallowm4eye.uf2 file and drag it onto the HALLOM4BOOT drive

Once it finishes loading the board will reboot.

jwtadmin
 
Posts: 40
Joined: Thu Jan 07, 2016 2:50 pm

Re: Halowing M4

by jwtadmin on Sat Sep 14, 2019 9:17 am

Wait I re-read your post - you want to change the example -

read the posts above mine - you need to do this with arduino code not python.

The guide posted above mostly works except for the issues I ran into.

Adafruit is writing a guide for the hallowingM4 but it's not out yet.

jwtadmin
 
Posts: 40
Joined: Thu Jan 07, 2016 2:50 pm

Re: Halowing M4

by lenzi on Sat Sep 14, 2019 4:05 pm

Thanks for the help i will try this in arduino and get that IDE installed. Maybe I should wait for the HalloWing guide?

lenzi
 
Posts: 2
Joined: Fri Sep 13, 2019 11:35 pm

Re: Halowing M4

by daverlee on Fri Sep 20, 2019 5:54 pm

Now that the guide has been posted, I was hoping for a full test arduino sketch to show which pins to use for the new display and how to initialize it. Will something like this be available soon?

daverlee
 
Posts: 3
Joined: Tue Jun 11, 2013 9:31 pm

Re: Halowing M4

by daverlee on Fri Sep 20, 2019 6:00 pm

nevermind, I found the example after updating the ST7789 library!

daverlee
 
Posts: 3
Joined: Tue Jun 11, 2013 9:31 pm

Please be positive and constructive with your questions and comments.