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.8.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for sense_hat_matrix-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 454e570cf248951f59457099c3918864eab07df0564150e71cad7052830c818b |
|
MD5 | a8c235b11569e6441c03c41e9ef0a838 |
|
BLAKE2b-256 | 45e3054f969c353723f0269e7afd8c76eea73c31c799aef239a60aa5a5da58a8 |