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

2015-10-08 Thread Henry Vermaak
On Wed, Oct 07, 2015 at 01:09:58PM +0200, Bo Berglund wrote: > On Wed, 07 Oct 2015 10:05:03 +0200, Jonas Maebe > wrote: > >Bo Berglund wrote on Wed, 07 Oct 2015: > > > >> How can one control the GPIO outputs on a Raspberry Pi2 without > >> needing the program to run as

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

2015-10-08 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On Wed, Oct 07, 2015 at 01:09:58PM +0200, Bo Berglund wrote: On Wed, 07 Oct 2015 10:05:03 +0200, Jonas Maebe wrote: Bo Berglund wrote on Wed, 07 Oct 2015: How can one control the GPIO outputs on a Raspberry Pi2 without needing the program to

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

2015-10-08 Thread Bo Berglund
On Thu, 08 Oct 2015 13:15:10 +, Mark Morgan Lloyd wrote: >> You access the GPIOs via the kernel's sysfs interface. The files are >> all under /sys/class/gpio. I'd be pretty amazed if your distro doesn't >> already have a udev rule to set a certain group

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

2015-10-08 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 08 Oct 2015 19:48:54 +, Mark Morgan Lloyd wrote: Do not, under any circumstances, try to fiddle with the permission of those files/directories. Instead, add the gpio group to your normal user (as I have already said). Jonas

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

2015-10-08 Thread Bo Berglund
On Thu, 08 Oct 2015 19:48:54 +, Mark Morgan Lloyd wrote: >Do not, under any circumstances, try to fiddle with the permission of >those files/directories. Instead, add the gpio group to your normal user >(as I have already said). > >Jonas has already

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

2015-10-08 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 08 Oct 2015 13:15:10 +, Mark Morgan Lloyd wrote: You access the GPIOs via the kernel's sysfs interface. The files are all under /sys/class/gpio. I'd be pretty amazed if your distro doesn't already have a udev rule to set a