Skip to content

astro-pi/python-sense-hat

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 21, 2022 12:42
November 21, 2022 15:24
November 21, 2022 12:42
June 17, 2022 10:55
November 21, 2022 12:42

#Sense HAT

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

Buy

Buy the Sense HAT from:

  • The Pi Hut
  • Pimoroni
  • Amazon (UK)
  • element14
  • adafruit
  • Amazon (USA)

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_

Contributors

  • Dave Honess
  • Ben Nuttall
  • Serge Schneider
  • Dave Jones
  • Tyler Laws
  • George Boukeas

Open Source

  • The code is licensed under the BSD Licence
  • The project source code is hosted on GitHub
  • Please use GitHub issues to submit bugs and report issues

URLs