croston wrote: ↑
Thu May 30, 2019 9:18 am
You shouldn't need root privileges with an up to date version of Raspbian and RPi.GPIO. You have still not answered my questions about the versions of things a few posts earlier. Without this information, we can only guess as to what is going wrong and what the solution is.
My guess would be it's either an ancient version of RPi.GPIO - if that is what is being used - because RPI.GPIO should be using /dev/gpiomem rather than /dev/mem to do its thing.
But RPi.GPIO falls back to using /dev/mem when it cannot gain access to /dev/gpiomem, so it could be 'lack of /dev/gpiomem' or something related which is causing the issue.
Still, running with "sudo" should allow the fall-back to using /dev/mem to work.