January 2019
Intermediate to advanced
458 pages
10h 35m
English
Since both the GPIO and I2C are treated as common Linux devices, they come with their own set of permissions. Assuming one wishes to avoid running the service as root, we need to add an account that runs the service to both the gpio and i2c user groups:
sudo usermod -a -G gpio user
sudo usermod -a -G i2c user
After this, we need to restart the system (or log out and in again) for the changes to take effect. We should now be able to run the service without any issues.
Read now
Unlock full access