Skip to main content

Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission

Project description

Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission - an education outreach programme for UK schools sending code experiments to the International Space Station.

Hardware

The Sense HAT features an 8x8 RGB LED matrix, a mini joystick and the following sensors:

  • Gyroscope
  • Accelerometer
  • Magnetometer
  • Temperature
  • Humidity
  • Barometric pressure

Installation

To install the Sense HAT software, enter the following commands in a terminal:

sudo apt-get update
sudo apt-get install sense-hat
sudo reboot

Usage

Import the sense_hat module and instantiate a SenseHat object:

from sense_hat import SenseHat

sense = SenseHat()

Documentation

Comprehensive documentation is available at pythonhosted.org/sense-hat

Open Source

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sense-hat, version 2.2.0
Filename, size & hash File type Python version Upload date
sense_hat-2.2.0-py2.py3-none-any.whl (15.1 kB) View hashes Wheel py2.py3
sense-hat-2.2.0.tar.gz (13.7 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page