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.4.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

astro_pi-1.1.4-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file astro-pi-1.1.4.tar.gz.

File metadata

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

File hashes

Hashes for astro-pi-1.1.4.tar.gz
Algorithm Hash digest
SHA256 9bc7360e69ae89989f93a46c37baa5022ab5af426f3009e1a1168c5d36302dc8
MD5 72e5a7ab824254f4587c14dfdea08cf4
BLAKE2b-256 46124d7f1aeea8efccc0177e82186b071a00d94bbfd0566523612177d8faee44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astro_pi-1.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 efcf16069610fa970cbef5831ec0c8ede43c334750651369fe8b9a1fd0304f87
MD5 b744a8e8572562bf255331ff35e61335
BLAKE2b-256 16414c7a24a6697bc9f91bb96a489b90415e6a5e8bdd28efec3ab6e5375ca33c

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