So I fought and fought with WLED and I can’t make it work the way I want. So I tried something else. I took an old Raspberry Pi Zero W and the SD card already had Bullseye on it so I added the python neopixel libraries for python and now I can have the LEDs work how I want them.
The downside is since I am poking the GPIO I have to use sudo. I’m trying to find a different route to control the GPIO for the time being.
Here are the commands I ran to get the Pi working with the LEDs.
sudo pip3 install rpi_ws281x
sudo pip3 install adafruit-circuitpython-neopixel
sudo python3 -m pip install --force-reinstall adafruit-blinka
After that I created a python script to turn on the first three pixels of the strip for cabinet 1 drawer 1.
import time
import board
import neopixel
pixels1 = neopixel.NeoPixel(board.D18, 55, brightness=1)
x=0
pixels1.fill((0, 0, 0))
pixels1[0] = (0, 255, 0)
pixels1[1] = (0, 255, 0)
pixels1[2] = (0, 255, 0)
time.sleep(15)
pixels1.fill((0, 0, 0))
I’m not much of a python programmer but it works. Feel free to simplify the code.
The code lights up the three pixels for 15 seconds. I also added a little eye candy to the bash script portion.
Using the old toilet program for the logo.
I’ll keep playing around with it until I can get things working a little better.