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
sense-hat-matrix-0.0.5.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for sense_hat_matrix-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f448ea0e85ad48882f33c1566c50f40484970d675e05a4879912bf7d54a846e |
|
MD5 | ae383a055f7730bdc5daac190c076a8d |
|
BLAKE2b-256 | 87b6e497a882e4f0ec9416754a61900c5827f0b36a58c252de44aa2fa8ab9150 |