From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: Ada / Automation fellows
Date: Sun, 29 Mar 2015 10:56:07 +0200
Date: 2015-03-29T10:56:07+02:00 [thread overview]
Message-ID: <mf8eli$b6r$1@dont-email.me> (raw)
In-Reply-To: <b4ttsetuk3yl.1tpwyjtpr3zf0$.dlg@40tude.net>
On 2015-03-28 15:55, Dmitry A. Kazakov wrote:
>>>
>>> A short question. How do you access GPIO on Raspberry Pi? Over the text
>>> file devices?
>>>
>>> We access GPIO, analogue inputs and PWM output through text files. It looks
>>> crazy to me. Is there a better way?
I forgot to mention 'Mastering the Raspberry Pi'
by Warren Gay.
http://www.apress.com/9781484201824
He describes the Pi in *great* detail.
And there is a chapter (12) on GPIO where he explores
* GPIO via sysfs
* GPIO events/interupts. Also via sysfs - get a notification/callback
when an IO-port changes state
and
* GPIO via memory mapped file
a short c-module to map the GPIO part of memory and then
* set_bit
* get_bit
functions to manipulate the IO-ports without sysfs
--
Björn
next prev parent reply other threads:[~2015-03-29 8:56 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-26 10:37 Ada / Automation fellows slos
2015-03-26 15:11 ` Dmitry A. Kazakov
2015-03-27 21:19 ` slos
2015-03-28 9:05 ` Dmitry A. Kazakov
2015-03-28 22:36 ` slos
2015-03-29 9:30 ` Dmitry A. Kazakov
2015-03-29 2:06 ` David Botton
2015-03-29 9:44 ` Dmitry A. Kazakov
2015-03-29 14:37 ` David Botton
2015-03-26 21:05 ` Randy Brukardt
2015-03-27 21:46 ` slos
2015-03-27 15:34 ` Björn Lundin
2015-03-27 21:59 ` slos
2015-03-28 9:20 ` Dmitry A. Kazakov
2015-03-28 11:52 ` Simon Wright
2015-03-28 14:53 ` Dmitry A. Kazakov
2015-03-28 12:03 ` Björn Lundin
2015-03-28 14:55 ` Dmitry A. Kazakov
2015-03-29 8:56 ` Björn Lundin [this message]
2015-03-29 9:52 ` Dmitry A. Kazakov
2015-03-28 22:05 ` slos
2015-03-29 9:49 ` Dmitry A. Kazakov
2015-03-28 11:43 ` Björn Lundin
2015-03-28 22:47 ` slos
2015-03-29 8:57 ` Björn Lundin
2015-03-30 21:57 ` lgrphotography84
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox