0

Gemma M0 Test Code for Neopixels
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Gemma M0 Test Code for Neopixels

by jeremyzschau on Wed Aug 14, 2019 7:11 pm

lib folder is in adafruit-circuitpython-bundle-py-20190807 folder which is on desktop.

desktop/adafruit-circuitpython-bundle-py-20190807/lib

jeremyzschau
 
Posts: 128
Joined: Fri Feb 27, 2015 11:00 pm

Re: Gemma M0 Test Code for Neopixels

by adafruit_support_carter on Wed Aug 14, 2019 8:22 pm

OK, let's see if we can cd into that directory. Try these commands:
Code: Select all | TOGGLE FULL SIZE
cd ~
cd Desktop
cd adafruit-circuitpython-bundle-py-20190807

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: Gemma M0 Test Code for Neopixels

by jeremyzschau on Thu Aug 15, 2019 8:18 pm

Here.
Attachments
Screen Shot 2019-08-16 at 9.12.35 AM.png
Screen Shot 2019-08-16 at 9.12.35 AM.png (344.27 KiB) Viewed 123 times

jeremyzschau
 
Posts: 128
Joined: Fri Feb 27, 2015 11:00 pm

Re: Gemma M0 Test Code for Neopixels

by adafruit_support_carter on Thu Aug 15, 2019 9:31 pm

the first command is:
Code: Select all | TOGGLE FULL SIZE
cd ~

not:
Code: Select all | TOGGLE FULL SIZE
cd -cd~

screen4.png
screen4.png (16.33 KiB) Viewed 117 times

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: Gemma M0 Test Code for Neopixels

by jeremyzschau on Thu Aug 15, 2019 9:48 pm

Something new.
Attachments
Screen Shot 2019-08-16 at 10.42.02 AM.png
Screen Shot 2019-08-16 at 10.42.02 AM.png (440.33 KiB) Viewed 114 times

jeremyzschau
 
Posts: 128
Joined: Fri Feb 27, 2015 11:00 pm

Re: Gemma M0 Test Code for Neopixels

by adafruit_support_carter on Thu Aug 15, 2019 10:49 pm

Looks good so far. Press enter for the last command.
screen5.png
screen5.png (8.41 KiB) Viewed 107 times

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: Gemma M0 Test Code for Neopixels

by jeremyzschau on Thu Aug 15, 2019 10:56 pm

This?
Attachments
Screen Shot 2019-08-16 at 11.50.00 AM.png
Screen Shot 2019-08-16 at 11.50.00 AM.png (76.57 KiB) Viewed 107 times

jeremyzschau
 
Posts: 128
Joined: Fri Feb 27, 2015 11:00 pm

Re: Gemma M0 Test Code for Neopixels

by adafruit_support_carter on Thu Aug 15, 2019 11:07 pm

OK, now you are sitting in the library bundle directory.
screen6.png
screen6.png (36.81 KiB) Viewed 106 times


Now type this command:
Code: Select all | TOGGLE FULL SIZE
cp -X ./lib/adafruit_dotstar.mpy /Volumes/CIRCUITPY/lib

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: Gemma M0 Test Code for Neopixels

by jeremyzschau on Sat Aug 17, 2019 1:30 am

Please check.
Attachments
Screen Shot 2019-08-17 at 2.23.47 PM.png
Screen Shot 2019-08-17 at 2.23.47 PM.png (211.15 KiB) Viewed 75 times

jeremyzschau
 
Posts: 128
Joined: Fri Feb 27, 2015 11:00 pm

Re: Gemma M0 Test Code for Neopixels

by adafruit_support_carter on Mon Aug 19, 2019 12:20 pm

Sorry, I missed another detail. Your are working with the wrong .zip file from the bundle. You have the one with the .py source files, not the .mpy compiled versions, which is what you want. On the bundle release page:
https://github.com/adafruit/Adafruit_Ci ... e/releases
you want the one that has "mpy" in the name. And then match the version number with the version of CP you are using. For example, if you are using CircuitPython 4.x, download this zip file:
screen6.png
screen6.png (34.55 KiB) Viewed 57 times

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: Gemma M0 Test Code for Neopixels

by jeremyzschau on Mon Aug 19, 2019 7:20 pm

Please check.
Attachments
Screen Shot 2019-08-20 at 8.14.22 AM.png
Screen Shot 2019-08-20 at 8.14.22 AM.png (259.17 KiB) Viewed 51 times

jeremyzschau
 
Posts: 128
Joined: Fri Feb 27, 2015 11:00 pm

Re: Gemma M0 Test Code for Neopixels

by adafruit_support_carter on Mon Aug 19, 2019 7:45 pm

OK. That looks good. It look like you were able to successfully copy the adafruit_dotstar.mpy file to the Gemma M0 board. So now you can go back to Mu and try running the little dotstar example:
Screenshot from 2019-08-06 07-25-17.png
Screenshot from 2019-08-06 07-25-17.png (84.84 KiB) Viewed 46 times

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: Gemma M0 Test Code for Neopixels

by jeremyzschau on Mon Aug 19, 2019 7:58 pm

Please check.
Attachments
Screen Shot 2019-08-20 at 8.53.07 AM.png
Screen Shot 2019-08-20 at 8.53.07 AM.png (66.35 KiB) Viewed 43 times

jeremyzschau
 
Posts: 128
Joined: Fri Feb 27, 2015 11:00 pm

Re: Gemma M0 Test Code for Neopixels

by adafruit_support_carter on Mon Aug 19, 2019 9:25 pm

Weird. Why isn't it finding it? Let's make sure it's there. Try going back to the command line and running this command.
Code: Select all | TOGGLE FULL SIZE
ls /Volumes/CIRCUITPY/lib

That command will list the contents of the lib folder so we can see what's there.

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: Gemma M0 Test Code for Neopixels

by jeremyzschau on Mon Aug 19, 2019 9:33 pm

Please check.
Attachments
Screen Shot 2019-08-20 at 10.27.54 AM.png
Screen Shot 2019-08-20 at 10.27.54 AM.png (70.27 KiB) Viewed 37 times

jeremyzschau
 
Posts: 128
Joined: Fri Feb 27, 2015 11:00 pm

Please be positive and constructive with your questions and comments.