From: Richard Miller <9fans@hamnavoe.com>
To: 9fans@9fans.net
Subject: Re: [9fans] Raspberry Pi 2 GPIO
Date: Sat, 7 Sep 2019 14:30:23 +0100 [thread overview]
Message-ID: <f8c9376f3bb33694741a523daba43344@hamnavoe.com> (raw)
In-Reply-To: <CALp9=o+rxLGqwK5X-x41tn4gFO+DwG7F6N1UdJvs19riK5bvWA@mail.gmail.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)
next prev parent reply other threads:[~2019-09-07 13:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-31 8:03 Олег Бахарев
2019-09-07 13:30 ` Richard Miller [this message]
2019-09-10 14:23 ` Олег Бахарев
2019-09-10 15:42 ` Brian L. Stuart
2019-09-10 16:20 ` Richard Miller
2019-09-10 23:18 ` Brian L. Stuart
2019-09-12 9:39 ` Richard Miller
2019-09-16 18:41 ` Brian L. Stuart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8c9376f3bb33694741a523daba43344@hamnavoe.com \
--to=9fans@hamnavoe.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).