miskopo / pi_eight_leds

Light modes for eight LEDs using Rapsberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Light modes for eight LEDs using Rapsberry Pi

License:GNU General Public License v3.0


Languages

Language:Python 99.8%Language:Shell 0.2%