Skip to content

Instantly share code, notes, and snippets.

@grammy-jiang
Last active November 8, 2020 10:12
Show Gist options
  • Save grammy-jiang/2ca3a34519b4c44f997ad56064a87ec5 to your computer and use it in GitHub Desktop.
Save grammy-jiang/2ca3a34519b4c44f997ad56064a87ec5 to your computer and use it in GitHub Desktop.
Install Sense HAT on Raspberry Pi 2 with Ubuntu 20.04
sudo -- sh -c "usermod --append --groups input video $USER"
echo "Install Sense-HAT"
sudo -- sh -c "apt install libjpeg-dev"
pip install pillow numpy sense-hat
echo "Install RTIMULib"
sudo -- sh -c "apt install python3-dev"
git clone https://github.com/RPi-Distro/RTIMULib.git
cd "./RTIMUlib/Linux/python"
python setup.py build
python setup.py install