Skip to content

Instantly share code, notes, and snippets.

@jkbryan
Created October 2, 2018 21:02
Show Gist options
  • Save jkbryan/babe3e684f5a34383eefe0151e73e5b8 to your computer and use it in GitHub Desktop.
Save jkbryan/babe3e684f5a34383eefe0151e73e5b8 to your computer and use it in GitHub Desktop.
enable-piglow.txt
nano /boot/config.txt
Add:
device_tree_param=bcm2709-rpi-2-b.dtb
device_tree_param=i2c1=on
device_tree_param=spi=on
nano /etc/modules-load.d/raspberrypi.conf
Add: i2c-dev
pacman -Syu
pacman -S python-pip base-devel i2c-tools python-psutil
pip install RPi.GPIO
pip install cffi
pip install smbus-cffi
Reboot
Get the PiGlow library and examples from https://github.com/benleb/PyGlow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment