Skip to content

Instantly share code, notes, and snippets.

@ripleymj
Last active November 4, 2019 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ripleymj/49b74a9e7b20a7c78156f196121f241c to your computer and use it in GitHub Desktop.
Save ripleymj/49b74a9e7b20a7c78156f196121f241c to your computer and use it in GitHub Desktop.
sudo raspi-config
#Interfacing options -> Enable SPI and I2C
Python2
apt-get install python-bme680 python-smbus python-numpy
apt-get install python-dev python-pip libfreetype6-dev libjpeg-dev build-essential libopenjp2-7 libtiff5
Python3
apt-get install python3-bme680 python3-smbus python3-numpy
apt-get install python3-dev python3-pip libfreetype6-dev libjpeg-dev build-essential libopenjp2-7 libtiff5
sudo pip3 install --upgrade luma.oled
git clone https://github.com/pimoroni/bme680-python
git clone https://github.com/rm-hull/luma.examples
python3 bounce.py --display sh1106 --height 128 --rotate 2 --interface spi --gpio-data-command 9 --spi-device 1
python3 starfield.py --display sh1106 --height 128 --rotate 2 --interface spi --gpio-data-command 9 --spi-device 1
git clone https://github.com/pimoroni/rgbmatrix5x5-python
export PYTHONPATH=~/rgbmatrix5x5-python/library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment