Skip to main content

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

Create new release with new tag on github

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)

Uploaded Source

Built Distribution

sense_hat_matrix-0.0.8-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page