This program contains several lighting modes using Raspberry Pi (any type, but tested on Zero) and is designed for following connection:
-
allon - Turns all LEDs on
π΄π΄ π΄ π΄ π΄ π΄ π΄ π΄
-
alloff - Turns all LEDs off (used mostly in testing)
β« β« β« β« β« β« β« β«
-
kitt - Lights LEDs from center to the edges like in Knight Rider
β« β« β« π΄ π΄ β« β« β«
β« β« π΄ β« β« π΄ β« β«
β« π΄ β« β« β« β« π΄ β«
π΄ β« β« β« β« β« β« π΄
-
lefttoright - lights LEDs from left to right in a loop
π΄ β« β« β« β« β« β« β«
β« π΄ β« β« β« β« β« β«
β« β« π΄ β« β« β« β« β«
β« β« β« π΄ β« β« β« β«
β« β« β« β« π΄ β« β« β«
β« β« β« β« β« π΄ β« β«
β« β« β« β« β« β« π΄ β«
β« β« β« β« β« β« β« π΄
-
righttoleft - as in lefttoright, but in the other direction
-
tocenter - as in kitt, but from the edges to the middle
navigate to project directory and execute
pip install .
or if you have both python2 and python3 installed, execute
pip3 install .
If you set up the wiring, it's time to make it glow! Usage is simple as follows:
pi_eight_leds MODE [--speed 0-1000] [--leavelit] [--iterations 1-...]
where MODE
is any mode from top list or help
, --leavelit
keeps LEDs lit within the transition. Other parameters are
pretty self explanatory, aren't they?
@miskopo