sense-hat-matrix

Manipulate the LED matrix of the sense-hat


License
BSD-3-Clause
Install
pip install sense-hat-matrix==0.0.5

Documentation

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

Create new release with new tag on github