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.7.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for sense_hat_matrix-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc92db28156e8fd983743f7f49e2aa1727a9d80bfbcfcea53cd2f5a3843ad32a |
|
MD5 | 92733487836bcf12f151ca467e7d5cc7 |
|
BLAKE2b-256 | 3ff02ad61c8f0f7791bdca095476502fc5060f8a1c2bc91f5f24fa038275f3a2 |