Re: Raspberry Pi 2 GPIO

Richard Miller <[email protected]>
Newsgroups gmane.os.plan9.general
Message-ID <[email protected]>
> How to get access to RPi 2 GPIO ?

bind -a '#G' /dev

Reading from /dev/gpio gives a 16-character big-endian hex string
with current values of gpios 63-0.

Writing commands like 'function 17 out' and 'set 17 1' to /dev/gpio
will change functions and outputs.

Sorry there doesn't seem to be a man page, see the source
for details (/sys/src/9/bcm/devgpio.c)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.