adafruit / Adafruit_CircuitPython_NeoPixel

CircuitPython drivers for neopixels.
MIT License
304 stars 98 forks source link

module 'board' has no attribute 'NEOPIXEL' #84

Closed neramas1221 closed 4 years ago

neramas1221 commented 4 years ago

Hi there! I tried one of the example and i got this error, i tried searching online but i couldnt find a solution. What could be causing this?

File "neopixesl_test.py", line 8, in pixel_pin = board.NEOPIXEL AttributeError: module 'board' has no attribute 'NEOPIXEL'

Thank you for any help!

siddacious commented 4 years ago

board.NEOPIXEL is an alias created for boards that have a built in NeoPixel for the pin that should be used to control the built in one. If you're getting this error it's because your board doesn't have one built in!

See this guide page for more information on interfacing with NeoPixels: https://learn.adafruit.com/circuitpython-essentials/circuitpython-neopixel

Github issues are for reporting bugs or making feature requests, not for support. If you have more questions, ask them in the CircuitPython and MicroPython forum: https://forums.adafruit.com/viewforum.php?f=60