ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I tracked down the problem to two lines in the libraries:
import pigpio
and
bus = smbus.SMBus(1)
Running this command solved the first problem
sudo chown root.gpio /dev/gpiomem && sudo chmod a+x /dev/gpiomem
To fix the second one, I had to modify 99-com.rules
.
/etc/udev/rules.d/99-com.rules
It was only necessary to change the mode corresponding to i2c-dev
to 0777
(read/write for all).
SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0777"
Come to think of it, I could do the same for the gpio
line and probably fix both issues using this file.
2 | No.2 Revision |
I tracked down the problem to these two lines in the libraries:
import pigpio
and
bus = smbus.SMBus(1)
Running this command solved the first problem
sudo chown root.gpio /dev/gpiomem && sudo chmod a+x /dev/gpiomem
To fix the second one, I had to modify 99-com.rules
.
/etc/udev/rules.d/99-com.rules
It was only necessary to change the mode corresponding to i2c-dev
to 0777
(read/write for all).
SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0777"
Come to think of it, I could do the same for the gpio
line and probably fix both issues using this file.