[Lazarus] Raspberry Pi Debug Digital I/O

Marc Santhoff M.Santhoff at web.de
Mon Jan 25 00:18:50 CET 2016


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:
> 
> >What do
> >
> >$ cat /etc/group | grep gpio
> >
> >and
> >
> >$ ls -lL /sys/class/gpio
> >
> >show?
> 
> For me it is like this:
> pi at rpi2-jessie2:~/dev $ cat /etc/group | grep gpio
> gpio:x:997:pi

Thje last one wrong, should have been

$ ls -lL /sys/class/gpio/gpiochip0

and

$ ls -lL ../../devices/platform/soc/3f200000.gpio/gpio/

to see the the targets of the links (correct permissions there, too?)
and content of the directory, sorry.

> pi at rpi2-jessie2:~/dev $ ls -lL /sys/class/gpio
> total 0
> -rwxrwx--- 1 root gpio 4096 Jan 17 16:47 export
> drwxrwx--- 2 root gpio    0 Jan 17 16:47 gpiochip0
> -rwxrwx--- 1 root gpio 4096 Jan 17 16:47 unexport
> 
> 

-- 
Marc Santhoff <M.Santhoff at web.de>





More information about the Lazarus mailing list