-
Enable the I2C bus by adding this line to
/boot/config.txt
in section all:dtoverlay=i2c1,pins_44_45
-
Install i2c-tools:
sudo apt-get install i2c-tools
-
Enable the I2C bus by adding this line to
/boot/efi/config.txt
in section all:dtoverlay=i2c1,pins_44_45
-
Install required packages
pkg install rpi-firmware xxd
-
Copy the overlay for the I2C bus to the boot partiton:
cp /usr/local/share/rpi-firmware/overlays/i2c1.dtbo /boot/efi/overlays/
-
Reboot the control node
-
Install scripts:
git clone https://github.com/pmhausen/turingpi-i2c-scripts.git cd turingpi-i2c-scripts make install
root@pi1:~# nodectl
usage: nodectl <node> on|off
root@pi1:~# nodectl 2 off
root@pi1:~# nodestat
NODE STATE
1 on
2 off
3 on
4 on
5 on
6 on
7 on
root@pi1:~# nodectl 2 on
root@pi1:~# nodestat
NODE STATE
1 on
2 on
3 on
4 on
5 on
6 on
7 on