From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?B?QmrDtnJuIEx1bmRpbg==?= Newsgroups: comp.lang.ada Subject: Re: Ada / Automation fellows Date: Sun, 29 Mar 2015 10:56:07 +0200 Organization: A noiseless patient Spider Message-ID: References: <00d45b3c-0cde-4208-88a9-c79ec8100408@googlegroups.com> <1xmowzmu1ex3u.l4fxgvqvgbqg.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 29 Mar 2015 08:55:14 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="fc33914e443908b1e29cc632a5b24c28"; logging-data="11483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ONuMNxWcs0WtoL1sKKIIN" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 In-Reply-To: Cancel-Lock: sha1:V+Wsi3XPtKZfWYlg40OqnIZk2VU= Xref: number.nntp.giganews.com comp.lang.ada:192623 Date: 2015-03-29T10:56:07+02:00 List-Id: 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