I have a problem to control SK6812 RGBW Strips with Raspberry python3 through neopixel_SPI.
When I start the application - the first led is getting red, but after one second all leds which are declared through NUM_PIXELS getting white.
- Code: Select all | TOGGLE FULL SIZE
import time
import board
import neopixel
NUM_PIXELS = 12
PIXEL_ORDER = neopixel.GRB
COLORS = (0xFF0000, 0x00FF00, 0x0000FF)
DELAY = 1
spi = board.SPI()
pixels = neopixel.NeoPixel_SPI(spi,
NUM_PIXELS,
pixel_order=PIXEL_ORDER,
auto_write=False)
while True:
pixels[0] = COLORS[0]
pixels.show()
time.sleep(DELAY)
pixels[0] = COLORS[1]
pixels.show()
time.sleep(DELAY)
The used library is neopixel_spi, installed through this guide:
https://learn.adafruit.com/circuitpytho ... i?view=all
I did an upgrade of the neopixel library andbusdevice library through
- Code: Select all | TOGGLE FULL SIZE
pip3 install --upgrade adafruit-circuitpython-neopixel
Can anyone help me with this problem?
Thanks in advance,