Skip to main content

Python API for Astro Pi (Sense HAT) for the Raspberry Pi

Project description

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

Installation

With your Pi connected to the Internet, run the following command (from the command prompt or a Terminal window) to download and start the Astro Pi install script:

wget -O - https://www.raspberrypi.org/files/astro-pi/astro-pi-install.sh --no-check-certificate | bash

This will take about 5 minutes on a Pi 2 and about 15 to 20 minutes on a Pi 1. When it’s finished you’ll see the following message:

You must reboot to complete the Astro Pi installation
Type:
sudo reboot
and press Enter when ready

Reboot the Pi to complete the install:

sudo reboot

The rainbow pattern on the LED matrix should now turn off during boot up.

Usage

Import the Astro Pi module and instantiate an object:

from astro_pi import AstroPi

ap = AstroPi()

Documentation

Comprehensive documentation is available at pythonhosted.org/astro-pi

Contributors

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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

astro_pi-1.1.6-py2.py3-none-any.whl (11.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file astro_pi-1.1.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for astro_pi-1.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7bda8bcc93462a367aa4db992f5ace8f2edfa770f80fab75601250a01b0d879e
MD5 e6034f4e8ae9e85e10ecd2e0402105e3
BLAKE2b-256 1439cc28a3fa738c9fc23b36aa349c5aebfa3122bb893edb2002b6ba98eac799

See more details on using hashes here.

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