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.4.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for sense_hat_matrix-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8e4fe6a3fdcb56aa42c8503d58b4a590860af6cba103a46f642039588656f6a |
|
MD5 | 81f7f1f8d3bc3641161970f98887aa0c |
|
BLAKE2b-256 | b04f0108a64a7119214de4894f9f0be821d7c9a385711e0721263a074bbc65a2 |