This sample shows how to light multiple LEDs on your LED strip in different colors.
This code uses the Adafruit CircuitPython NeoPixel library to control the LED strip.
-
Clone this repo onto your Pi and navigate to this folder.
-
Install the Pip packages using
sudo
:sudo pip3 install -r requirements.txt
-
Read the
app.py
code to understand what it does. -
Update
PIXEL_COUNT
to the number of pixels you are using. -
Run the
app.py
sample usingsudo
:sudo python3 app.py