Prerequisites
The piio command
Using the piio command requires root permissions.
The twowire command
For the twowire command, i2c functionality must be enabled on the Raspberry Pi:
- Unblacklist i2c-bcm2708 in /etc/modprobe.d/raspi-blacklist.conf by putting a # in front of the line
- Enable i2c-dev by adding it in /etc/modules
- Add the user to the i2c group using the command:
sudo usermod -aG i2c pi