A basic application framework for the Pimoroni LED SHIM
Project description
phalski-ledshim
A basic application framework for the Pimoroni LED SHIM.
Features:
- Easy animation development
- Flexible pixel segmenting
- Running multiple animations simultaneously
- Basic charting supported out of the box
Examples
Basic usage:
from phalski_ledshim import app, animation
application = app.App()
application.configure_worker(0.1, animation.Rainbow(application.pixels[0:13], 60))
application.configure_worker(0.2, animation.LedTest(application.pixels[13:27]))
application.exec()
Running multiple sources in a single worker:
from phalski_ledshim import app, animation
application = app.App()
application.configure_worker(0.1, animation.Rainbow(application.pixels[0:13], 60), animation.LedTest(application.pixels[13:27]))
application.exec()
Using charts (requires psutil
):
import psutil
from phalski_ledshim import app, chart
application = app.App()
source = chart.Factory.bar_chart_source(application.pixels, lambda: psutil.cpu_percent())
application.configure_worker(0.1, source)
application.exec()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phalski-ledshim-0.2.0.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for phalski_ledshim-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51cc4606da090f03b5d38b6d0a881bf05c5dcd784d96b65b87b147c00808afb3 |
|
MD5 | 29ecd230f6fbdbfee1b340c83bae2ec7 |
|
BLAKE2b-256 | 5ae09d2690c34255893c8c8d01dc152c564c94a13f42e73055fa6ead0b575877 |