I have also followed the link https://cdn-learn.adafruit.com/download ... rry-pi.pdf
to install NeoPixel Library.
So, I can turn the LEDS, but they are not acting as desired, for instance, colors are randomly changing/blinking.
So, for the test, I want to turn all the LEDs on and be colored red:
Code: Select all
import time
import board
import neopixel
pixel_pin = board.D18
num_pix = 12
order = neopixel.GRBW # won't matter if I use orders, RGB, RGBW, GRB
pixel = neopixel.NeoPixel(pixel_pin, num_pix, brightness = 0.2, auto_write = False, pixel_order = order)
while True:
pixel.fill((255,0,0))
pixel.show()
Code: Select all
import time
import board
import neopixel
pixel_pin = board.D18
num_pix = 12
order = neopixel.GRBW # won't matter if I use orders, RGB, RGBW, GRB
pixel = neopixel.NeoPixel(pixel_pin, num_pix, brightness = 0.2, auto_write = False, pixel_order = order)
pixel.fill((255,0,0))
pixel.show()
time.sleep(50)
This is a frustrating situation, which I spent time to figure it out, and nothing!