Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

M4 Express with Prop-Maker not lighting NeoPixels
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

M4 Express with Prop-Maker not lighting NeoPixels

by MillenniumThalken on Thu Mar 26, 2020 8:22 pm

I am trying to rig up a Neopixel LED strip to a prop-maker feather wing that is on the M4 express. I thought I wrote a little CircuitPython to see if it was working, but I get no lights. Does this code look like it should be running a LED Strip or is there something wrong in my code?

Code: Select all | TOGGLE FULL SIZE
from digitalio import DigitalInOut, Direction, Pull
import board
import neopixel


# CUSTOMIZE YOUR COLOR HERE:
# (red, green, blue) -- each 0 (off) to 255 (brightest)
# COLOR = (255, 0, 0)  # red
#COLOR = (100, 0, 255)  # purple
COLOR = (0, 100, 255) #cyan

NUM_PIXELS = 60
NEOPIXEL_PIN = board.D5

strip = neopixel.NeoPixel(NEOPIXEL_PIN, NUM_PIXELS, brightness=1, auto_write=False)

while True:
    strip.fill(COLOR)# Set to color
    strip.show()


MillenniumThalken
 
Posts: 17
Joined: Mon Oct 28, 2019 2:07 pm

Re: M4 Express with Prop-Maker not lighting NeoPixels

by adafruit_support_carter on Thu Mar 26, 2020 9:12 pm


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

Re: M4 Express with Prop-Maker not lighting NeoPixels

by MillenniumThalken on Fri Mar 27, 2020 6:10 pm

This is perfect, thanks so much.

MillenniumThalken
 
Posts: 17
Joined: Mon Oct 28, 2019 2:07 pm

Please be positive and constructive with your questions and comments.