Skip to main content

The ledgrid module contains a single LEDGrid class which aims to be as identical as possible to the public interface of the Raspberry Pi Sense HAT library, such that it is useful in mocking up software for it and other such devices.

https://raw.githubusercontent.com/zeth/ledgrid/master/ledgrid-screenshot.png

Many existing Sense HAT LED demos and software will work using the following import statement:

from ledgrid import LEDGrid as SenseHat

However, the internal implementation is rather simplified and uses pygame instead of the hardware HAT.

It requires pygame to be installed (not currently available through pypi), an additional optional dependency is PIL (i.e. Pillow) which is required by some features (notably scrolling text with the show_message method).

It supports every Python version since 2.7. It is contained in only one Python file, so it can be easily copied into your project if you don’t want to use pypi. (The copyright and license notice must be retained.)

At the bottom of the ledgrid.py file are some examples of usage. You can run these examples using:

python3 -m ledgrid

Or if you have the file locally:

python3 ledgrid.py

Many thanks to Richard Hayler. The LED class, graphics, etc are based on his 8x8GridDraw.

Metadata

Release files for ledgrid 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ledgrid 0.4
File Size Uploaded Provenance Actions
ledgrid-0.4.tar.gz 10.3 kB Without provenance Details for ledgrid-0.4.tar.gz

Release files / ledgrid-0.4.tar.gz

Download URL ledgrid-0.4.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
32624049ae97d6cb77f3a9c0bd0b6dd35c1e13fe53c0748753cce4475eabc4d4
BLAKE2b-256 checksum
How to use checksums
dc69da5427e55a8ba11de12c848f84319a92915558f036c171e5ee9fe5a17afc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ledgrid 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page