From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?0J7Qu9C10LMg0JHQsNGF0LDRgNC10LI=?= Date: Tue, 10 Sep 2019 17:23:11 +0300 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="0000000000001637cd059233a6e1" Subject: Re: [9fans] Raspberry Pi 2 GPIO Topicbox-Message-UUID: 07710450-eada-11e9-9d60-3106f5b1d025 --0000000000001637cd059233a6e1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Need man page for this. Can you get some example for reading/writing GPIO ? =D1=81=D0=B1, 7 =D1=81=D0=B5=D0=BD=D1=82. 2019 =D0=B3., 16:46 Richard Mille= r <9fans@hamnavoe.com>: > > 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) > > > --0000000000001637cd059233a6e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Need man page for this.
Can you get some= example for reading/writing GPIO ?

=D1=81=D0=B1, 7 =D1=81=D0=B5=D0=BD= =D1=82. 2019 =D0=B3., 16:46 Richard Miller <9fans@hamnavoe.com>:
> 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)


--0000000000001637cd059233a6e1--