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