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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.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: Sat, 28 Mar 2015 13:03:10 +0100 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: Sat, 28 Mar 2015 12:02:16 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="fc33914e443908b1e29cc632a5b24c28"; logging-data="15585"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1803xdxdbWEQUM4jLXT3BOP" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 In-Reply-To: <1xmowzmu1ex3u.l4fxgvqvgbqg.dlg@40tude.net> Cancel-Lock: sha1:5GS/io0LGpGIONCvzOTaXgtPewo= Xref: news.eternal-september.org comp.lang.ada:25307 Date: 2015-03-28T13:03:10+01:00 List-Id: On 2015-03-28 10:20, Dmitry A. Kazakov wrote: > On Fri, 27 Mar 2015 14:59:24 -0700 (PDT), slos wrote: > >> In another thread you said that you would be interested to give a try at >> "Ada for Automation" on a Raspberry Pi. Have you ? > > 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 use the wiring pi (gpio executable) But then my demands right now is checking if a pin is set or not once every second. But if there is a better way, I'd think you can find it in the c-source and perhaps interface to it. Or get some ideas at least. http://wiringpi.com/ -- -- Björn