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 Distribution

astro-pi-1.1.5.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

astro_pi-1.1.5-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.5.tar.gz.

File metadata

  • Download URL: astro-pi-1.1.5.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for astro-pi-1.1.5.tar.gz
Algorithm Hash digest
SHA256 3598fefb1933a2acf655c181d2b4158f819b0327e3299534acb91852df3a9a9e
MD5 9dc39e654712f83405c28980ab96bd55
BLAKE2b-256 b3f0f5ba883d981596a19bd22d39e7b556b809b0ce35c73050876f083c2a6b46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astro_pi-1.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fb917b0b730965800eb432b5863c60e7d4eb6135bfe13f58df61627e198d4814
MD5 4483af3a7062ac5e91447741ba6987eb
BLAKE2b-256 a7c767e93f887d1718ae4aab076d5b51601582c2fc081f942c143dfa7c6cdd58

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