Skip to main content

Show various effects on a Pimoroni LED shim.

Project description

led-shim-demo

PyPi Package Python Versions

Display a variety of effects on the Raspberry Pi led-shim from Pimoroni.

The effects are based on the examples given in the base library plus some additions from my fork.

  • Binary Clock - Shows hours, minutes and seconds.
  • Candle - A flickering candle.
  • CheerLights - Synchronize with the CheerLights "Internet of Things" project.
  • Coloured Lights - Simple coloured lights like Xmas lights.
  • Gradient Graph - A moving colour gradient determined by the height of a sine wave.
  • Rainbow - A slowly moving rainbow effect.
  • Random Blink - Some random blinking.
  • Solid Colours - A basic effect which just shows a sequence of solid colours.

Note, this project is somewhat over-engineered for what it actually does because it's being used as a learning exercise.

Installing

Install on Raspbian from PyPi using:

sudo pip3 install led-shim-demo

Running

$ ledshimdemo --help

Usage: ledshimdemo [OPTIONS]

  Show various effects on a Pimoroni LED shim.

Options:
  --version                       Show the version and exit.
  -d, --effect_display [CYCLE|RANDOM]
                                  How the effects are displayed.  [default:
                                  CYCLE]
  -u, --effect_duration INTEGER RANGE
                                  How long to display each effect for, in
                                  seconds (1-180).  [default: 10]
  -r, --effect_run INTEGER RANGE  How many times to run effects before
                                  stopping (1-240).  [default: 24]
  -b, --brightness INTEGER RANGE  How bright the effects will be (1-10).
                                  [default: 8]
  -i, --invert                    Change the display orientation.
  -l, --loglevel [DEBUG|INFO|WARNING]
                                  Show additional logging information.
                                  [default: WARNING]
  --help                          Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ledshimdemo-0.0.3.tar.gz (11.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page