/pi_eight_leds

Light modes for eight LEDs using Rapsberry Pi

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Raspberry Pi eight LED modes

Build Status codecov Requirements Status License GitHub repo size in bytes GitHub issues Raspberry Pi models

Requirements: ✈️

This program contains several lighting modes using Raspberry Pi (any type, but tested on Zero) and is designed for following connection: Scheme

Modes (list is not yet complete) 🚧

  • 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

Installation: 🌻

navigate to project directory and execute

pip install .

or if you have both python2 and python3 installed, execute

pip3 install .

Usage: 🚀

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?

Author: :octocat:

@miskopo