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
ginal Message- From: fpc-other-boun...@lists.freepascal.org [mailto:fpc-other-boun...@lists.freepascal.org] On Behalf Of Travis Siegel Sent: den 11 oktober 2015 18:02 To: Other FPC related discussions. Subject: Re: [fpc-other] [fpc-pascal] Access GPIO pins on RPi2 without root? You can add an

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

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

2015-10-10 Thread Mark Morgan Lloyd
Bo Berglund wrote: Notice that the file used is /dev/mem I don't know if there exists a user group named mem, but in any case the user pi is not member of any such group. Could this be the cause for root to be required? No, if you do $ ls -l /dev/mem crw-rT 1 root kmem 1, 1 Jan 1 1970

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

2015-10-10 Thread Bo Berglund
>If it would be a FPC specific usage question then it would be a bad idea to post it to fpc-other. >However as others have already stated accessing GPIOs on RPi is non specific to FPC and thus it doesn't need to be on fpc-pascal or even fpc-devel. OK, I understand. I have researched a bit more now

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

2015-10-10 Thread Sven Barth
Am 10.10.2015 11:40 schrieb "Bo Berglund" : > > OK, > I have now subscribed to the fpc-other list. > Hopefully I can ask "stupid" fpc usage questuions there... If it would be a FPC specific usage question then it would be a bad idea to post it to fpc-other. However as others have already stated ac