Getting PiGlow working on Arch Linux with Raspberry Pi 2

It initially seemed like a trivial task; after all getting the PiGLow working under Raspian was very simple!

But under Arch the method is significantly different…So, after digging about, getting all the pieces together – this is what I have and it works!

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

Now to get this to run on start-up…

nano /etc/systemd/system/cpu-py.service
Add:
[Unit]
Description=cpu piglow python script
After=syslog.target network.target
[Service]
ExecStart=/usr/bin/python /usr/share/piglow/cpu.py
Restart=on-abort
[Install]
WantedBy=multi-user.target
Save: Ctrl o, then Exit: Ctrl x
systemctl daemon-reload
systemctl start cpu-py.service
Does it work? If yes, then:
systemctl enable cpu-py.service
Reboot - script should start automatically!