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

Uploaded Source

Built Distribution

astro_pi-1.1.3-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.3.tar.gz.

File metadata

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

File hashes

Hashes for astro-pi-1.1.3.tar.gz
Algorithm Hash digest
SHA256 6b6bb851e59205c795356246f784ac2d351b01ec149e3005e0b52237b37d4d32
MD5 fab032354230c59ba58e8c0ec63e87cb
BLAKE2b-256 f7cbe861f423067fd9d73d28c9f891a957947acc448282ea249fc847b6c5e282

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astro_pi-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a374885dbc520fd4fc86dc8b6586a58e0d594c27618b95e5c61bb6b4b2acd042
MD5 e17c2bb4856866bd3056e28e6f388abe
BLAKE2b-256 38681fded5814182cecfcc68f52e6d043e07bd0f17dda1972939f806e4a0568f

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