Re: Raspberry Pi 2 GPIO
Олег Бахарев <[email protected]>
| Newsgroups | gmane.os.plan9.general |
|---|---|
| Message-ID | <CALp9=oLSwWWr+94011Vybnio31iQrs5xqRy5re+-AwhDxjPh-g@mail.gmail.com> |
Need man page for this. Can you get some example for reading/writing GPIO ? сб, 7 сент. 2019 г., 16:46 Richard Miller <[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) > > >