Manipulate the LED matrix of the sense-hat
Project description
sense-hat-matrix
Usage
from sense_hat import SenseHat
from sense_hat_matrix.Graph import Graph
from sense_hat_matrix.GraphUtil import temp_colour
from sense_hat_matrix.GraphUtil import rescale
min_temp = 20
max_temp = 24
sense = SenseHat()
temp = sense.get_temperature()
g = Graph(min_temp, max_temp)
pixels = g.render(temp)
sense.set_pixels(pixels)
Example project
Dev
Install project
pip3 install -e .
Release new version
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sense-hat-matrix-0.0.8.tar.gz.
File metadata
- Download URL: sense-hat-matrix-0.0.8.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16f7303213277f532b94871ba006746b291d81f91f5c50a420693a5846245752
|
|
| MD5 |
5f9aed36abc04b42e5d41fdcc5aa9a94
|
|
| BLAKE2b-256 |
268d77967839a3f70061a2d278528970d95b5446de33a139326ee4295b6d82a3
|
File details
Details for the file sense_hat_matrix-0.0.8-py3-none-any.whl.
File metadata
- Download URL: sense_hat_matrix-0.0.8-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
454e570cf248951f59457099c3918864eab07df0564150e71cad7052830c818b
|
|
| MD5 |
a8c235b11569e6441c03c41e9ef0a838
|
|
| BLAKE2b-256 |
45e3054f969c353723f0269e7afd8c76eea73c31c799aef239a60aa5a5da58a8
|