Re: [fpc-other] [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-11 Thread Travis Siegel
This is good to know. I've not tried using fpc to read io pins on the pi yet, but it's certainly nice to have the option. I will keep this post for when the inevidable occurs, and I decide to use fpc for a project on my pi. Honestly, I didn't even realize it would be possible to read the io

Re: [fpc-other] [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-11 Thread Bo Berglund
Thanks, I have come a lot further now, in fact I am done with the basic reasearch on how to do the I/O. What I found is that the pigpio.pas file found in the lazarus wiki needs some slight modifications and then it is perfectly OK to use. No need for any bigger driver than this to do the RPi2 I/O.

Re: [fpc-other] [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-11 Thread Travis Siegel
You can add any user to any group you like, by using the groupadd program in the terminal. For example, usermod -a -G audio pi would add the pi user to the audio group, allowing them to use audio functions without having to be root or use sudo for the access. Of course, the usermod command ne