Skip to main content

Python library for driving Pimoroni Plasma!

Project description

Build Status Coverage Status PyPi Package Python Versions

https://shop.pimoroni.com/products/plasma

Eight super-bright RGB LED indicators, ideal for adding visual notifications to your Raspberry Pi on their own or on a pHAT stacking header.

Installing

Manual install:

Library install for Python 3:

on Raspbian:

sudo apt-get install python3-plasmalights

other environments:

sudo pip3 install plasmalights

Library install for Python 2:

on Raspbian:

sudo apt-get install python-plasmalights

other environments:

sudo pip2 install plasmalights

Using Plasma

Plasma installs two programs onto your Raspberry Pi. plasma itself and a tool called plasmactl you can use to install and switch lighting effects. Plasma runs as a service on your system.

plasmactl commands:

  • plasmactl 255 0 0 - Set Plasma lights to R, G, B colour. Red in this case.

  • plasmactl <pattern> - Set Plasma lights to pattern image

  • plasmactl fps <fps> - Change plasma effect framerate (default is 30, lower FPS = less CPU)

  • plasmactl --list - List all available patterns

  • sudo plasmactl --install <pattern> - Install a new pattern, where <pattern> is the filename of a 24bit PNG image file

Development:

If you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository, cd to the library directory, and run:

sudo python3 setup.py install

(or sudo python setup.py install whichever your primary Python environment may be)

Documentation & Support

0.0.1

  • Initial Release

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

plasmalights-0.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distributions

plasmalights-0.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

plasmalights-0.0.1-py2.7.egg (2.6 kB view details)

Uploaded Source

plasmalights-0.0.1-py2-none-any.whl (6.6 kB view details)

Uploaded Python 2

File details

Details for the file plasmalights-0.0.1.tar.gz.

File metadata

  • Download URL: plasmalights-0.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.9

File hashes

Hashes for plasmalights-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7538c8e99ce59462e39dada79082dfc5d62fab7c6ba2c2e3d1ffb659b3dbd8c7
MD5 6edfc239bea7373c98e58318695c7458
BLAKE2b-256 077977b1b5313ab220bbce4551b280cd15e7c5cad64758f93c993b91f86deb75

See more details on using hashes here.

File details

Details for the file plasmalights-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: plasmalights-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.9

File hashes

Hashes for plasmalights-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a473e67e8997163711518b2f541e1708be85a3ac6a1930aa49c0f9699398ca8f
MD5 f04adaaaef3ce936db7fd17a44d82c0a
BLAKE2b-256 0b769a8382801d9d665489ecd6fcf4bb31b4ae635c422c1b61a53cead18f4e2e

See more details on using hashes here.

File details

Details for the file plasmalights-0.0.1-py2.7.egg.

File metadata

  • Download URL: plasmalights-0.0.1-py2.7.egg
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for plasmalights-0.0.1-py2.7.egg
Algorithm Hash digest
SHA256 60f6cde6570ab0b6ea21441f8ba1b5bf8eaf28b8aa05acb1f9142bd44b681b30
MD5 3cf9dd566e76bca611426b94a026250c
BLAKE2b-256 161b9f4c1a59b5430422a7cc0d31f8e16a7c7835f3ccb75fe15fa46844e62a93

See more details on using hashes here.

File details

Details for the file plasmalights-0.0.1-py2-none-any.whl.

File metadata

  • Download URL: plasmalights-0.0.1-py2-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.9

File hashes

Hashes for plasmalights-0.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 13c5a7e29796fb094c000f0868c8505ad47cdfe49e5ec58f43461d07600a5630
MD5 84f8160afa77cd2bd334c00c96051b34
BLAKE2b-256 7435726e81598c414e4fadeccc9e9937d4ffc84beaa0f309d3743f2d56e0093f

See more details on using hashes here.

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