Closed akameswaran closed 3 years ago
Figured out how to make it work.
Basically I had to edit led.py and replace the import statement and instantiation. from rpi_ws281x import PixelStrip, Color and change the instantiation to use PixelStrip object as used in strandtest.py
Cheers
Maybe I missed where the doc covers getting the neopixel libraries.
I know my issues are not with the neopixels, I am able to control them etc with other code no issues.
When I try to run led.py I got an issue that neopixel.Adafruit_neopixel does not exist - and the sample code I have for CircuitPy neopixels library from adafruit actually uses a neopixel.NeoPixel object. It does not take the arguments used in led.py. Nor do I have any file for strandtest.py.
I did try to re-rig the instantiation code to use the neopixel.NeoPixel constructor but then I run into other issues so I'm certain neopixel.Adafruit_neoPixel is not all that similar to neopixel.NeoPixel.
I'm hoping someone can help me figure out what I missed. FWIW, rPi 4.