I am attempting to get a c++ program to access the gpio as non-root. I am on a raspi 2 running Jessie. I followed the instructions on issue: Access GPIO pins without root. No access to /dev/mem. Try running as root! For some reason, it still doesn't work after adding user to the gpio group and ensuring the correct permissions/owners. It says
can't open /dev/mem: : Permission denied
Am i supposed to change permissions to /dev/mem? I've read that it is a security concern so I would like to avoid it. The only think i didn't do was update the kernel to 4.4 (at 4.1.19-v7+) since it looks like it can cause issues with some drivers. Maybe i should risk that?
Any insight would be helpful.