> 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)


Reply via email to