Raspberry Pi Sense HAT tutorial

Raspberry Pi Sense HAT tutorial

Installing and using your Raspberry Pi Sense HAT is easy, just follow our simple guide below to get started.

Install

Install the Sense HAT software by opening a Terminal window and entering the following commands (while connected to the Internet):

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

Usage

Hello world example:

from sense_hat import SenseHat
sense = SenseHat()
sense.show_message("Hello world!")

See the API reference for full documentation of the library's functions. See examples.

Development

This library is maintained by the Raspberry Pi Foundation on GitHub at github.com/RPi-Distro/python-sense-hat

Featured Products

Raspberry Pi Sense HAT V2 - The Pi HutRaspberry Pi Sense HAT V2 - The Pi Hut
Raspberry PiRaspberry Pi Sense HAT V2
Sale price £28.80 incl. VAT excl. VAT
Sense HAT Case for Raspberry Pi 4 - The Pi HutSense HAT Case for Raspberry Pi 4 - The Pi Hut
The Pi HutSense HAT Case for Raspberry Pi 4
Sale price £9 incl. VAT excl. VAT

Leave a comment

All comments are moderated before being published.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.