there are two aspects of code that require root permissions, as they will not work with /dev/gpiomem
There should be a way to give users access without requiring root. For example, on one of my RPis, there are udev rules in /etc/udev/rules.d/99-com.rules that put /dev/gpiomem into the gpio group, and my pi user is already in that group. I've also added a few custom rules for other devices, all it takes is adding the GROUP="foo" command to the corresponding udev rule.
In reply to Re: Running specific test files with sudo
by haukex
in thread Running specific test files with sudo
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |