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.6.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for sense_hat_matrix-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed087e54714f469e49c99370976202d987f4b5a5d9ecb31363192a31f47104bb |
|
MD5 | 902d95c2f715641a2a20eff99323790a |
|
BLAKE2b-256 | 39aa9b6323b12f4ea22abca36874f31c60f3675c903e8a0b7d30ea5e2185509f |