Skip to main content

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


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.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

phalski_ledshim-0.2.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file phalski-ledshim-0.2.2.tar.gz.

File metadata

  • Download URL: phalski-ledshim-0.2.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

File hashes

Hashes for phalski-ledshim-0.2.2.tar.gz
Algorithm Hash digest
SHA256 dfe0042efacdca616b2c138ee3d1a286cc3fc6a18e3cfb766089ae89da1c236c
MD5 8cc8af01c21e9cf455464519c09a7670
BLAKE2b-256 fbd55bc6385c36b946c1214ef02de17c5eadfcaaa81e0935b55c5c0a33031ecc

See more details on using hashes here.

File details

Details for the file phalski_ledshim-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: phalski_ledshim-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

File hashes

Hashes for phalski_ledshim-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 13bc5d4e36d460708c77182b1cd269c54e52181b03df766028017d82b4af4750
MD5 ddedff7bb45dddb7724d991bb4883439
BLAKE2b-256 6782760bd0a620106a8c51d22f8851efea04ff63cc82b165c2e3e03c82ecbe95

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