Python API for Astro Pi (Sense HAT) for the Raspberry Pi
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.
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:
The rainbow pattern on the LED matrix should now turn off during boot up.
Import the Astro Pi module and instantiate an object:
from astro_pi import AstroPi ap = AstroPi()
Comprehensive documentation is available at pythonhosted.org/astro-pi
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size astro_pi-1.1.0-py2.py3-none-any.whl (10.6 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
Hashes for astro_pi-1.1.0-py2.py3-none-any.whl