[Lazarus] Raspberry Pi Debug Digital I/O

Koenraad Lelong lazarus2 at de-brouwerij.be
Mon Jan 25 09:00:38 CET 2016


Op 25-01-16 om 00:18 schreef Marc Santhoff:
> On Mo, 2016-01-25 at 00:11 +0100, Bo Berglund wrote:
>> On Sun, 24 Jan 2016 21:42:06 +0100, Marc Santhoff <M.Santhoff at web.de>
>> wrote:
>>
My results :

root at raspberrypi:/home/pi# grep gpio /etc/group
gpio:x:997:pi
root at raspberrypi:/home/pi# ls -lL /sys/class/gpio/gpiochip0
totaal 0
-rwxrwx--- 1 root gpio 4096 jan 24 22:10 base
drwxr-xr-x 3 root root    0 jan 24 22:10 device
-rwxrwx--- 1 root gpio 4096 jan 24 22:10 label
-rwxrwx--- 1 root gpio 4096 jan 24 22:10 ngpio
drwxrwx--- 2 root gpio    0 jan 24 22:10 subsystem
-rwxrwx--- 1 root gpio 4096 jan 24 22:10 uevent
root at raspberrypi:/home/pi# cd /sys/class/gpio/

Application running as user pi :
root at raspberrypi:/sys/class/gpio# ls -lL 
../../devices/platform/soc/3f200000.gpio/gpio/
totaal 0
drwxrwx--- 2 root gpio 0 jan 25 08:54 gpio17
drwxrwx--- 2 root gpio 0 jan 25 08:54 gpio18
drwxrwx--- 2 root gpio 0 jan 24 22:10 gpiochip0

Application running as user root :
root at raspberrypi:/sys/class/gpio# ls -lL 
../../devices/platform/soc/3f200000.gpio/gpio/
totaal 0
drwxrwx--- 2 root gpio 0 jan 25 08:56 gpio17
drwxrwx--- 2 root gpio 0 jan 25 08:56 gpio18
drwxrwx--- 2 root gpio 0 jan 24 22:10 gpiochip0

I'm going to try that patch of Bo.

I'll report back.

Koenraad.





More information about the Lazarus mailing list