Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Using neopixels from Feather M4 Express?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Using neopixels from Feather M4 Express?

by flounder on Thu May 07, 2020 10:51 pm

I'm using a NeoPixel Featherwing on a Feather M4 Express. I want to program it in MakeCode. The 32 NeoPixels will be powered from the USB; the Dout from the NeoPixel Featherwing will go into a long NeoPixel strip, which will have its own power supply. According to the docs, Pin5 of the FeatherWing is the Din for the 32 onboard NeoPixels. So how do I use MakeCode with the NeoPixel Featherwing?

flounder
 
Posts: 407
Joined: Wed Sep 18, 2013 9:10 pm
Location: Pittsburgh PA

Re: Using neopixels from Feather M4 Express?

by johnpark on Fri May 08, 2020 2:52 pm

The NeoPixel FeatherWing has the DIN by default set at pin D6. You should create the strip in MakeCode to create a WS2812 on D6 with 32 + the external strip length. So, if you had an external strip of 30 pixels, it would look like this:
neo.png
neo.png (20.02 KiB) Viewed 82 times

johnpark
 
Posts: 770
Joined: Wed Mar 25, 2009 2:15 pm

Re: Using neopixels from Feather M4 Express?

by flounder on Sat May 09, 2020 6:49 pm

Thank you!

flounder
 
Posts: 407
Joined: Wed Sep 18, 2013 9:10 pm
Location: Pittsburgh PA

Re: Using neopixels from Feather M4 Express?

by flounder on Sat May 09, 2020 7:24 pm

Well, almost. I can't find any way to place that block about creating the neopixel strip anywhere. The supplemental info does not show blocks or how to create them; it shows some JavaScript code. What do I need to do to get that block inserted?

I clicked on "Light", and "...NeoPixel" came up. But the only creates were
(create strip on [pin] with (num) pixels)
and
(create APA102 strip data [pin] clock [pin] with (num) pixels)

I am also using makecode.adafruit.com, which only seems to allow me to use CPX; I do not seem to have the option of selecting Feather M4 Express as the board I'm using.

flounder
 
Posts: 407
Joined: Wed Sep 18, 2013 9:10 pm
Location: Pittsburgh PA

Re: Using neopixels from Feather M4 Express?

by flounder on Sun May 10, 2020 12:47 am

OK, I finally found maker.makecode.com; I tripped over it when reading about putting NeoPixels on the Gemma Express. Why isn't this site explicitly linked to in the documentation for chips like the Feather M4 Express?

flounder
 
Posts: 407
Joined: Wed Sep 18, 2013 9:10 pm
Location: Pittsburgh PA

Re: Using neopixels from Feather M4 Express?

by johnpark on Fri May 15, 2020 3:45 pm

Thanks, that's a great point. I went in and added a note about this and a link to the learn guide for every board we make that has maker.makecode support.

johnpark
 
Posts: 770
Joined: Wed Mar 25, 2009 2:15 pm

Re: Using neopixels from Feather M4 Express?

by flounder on Fri May 15, 2020 11:18 pm

Thanks.

flounder
 
Posts: 407
Joined: Wed Sep 18, 2013 9:10 pm
Location: Pittsburgh PA

Please be positive and constructive with your questions and comments.