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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada / Automation fellows Date: Sat, 28 Mar 2015 11:52:19 +0000 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 Injection-Info: mx02.eternal-september.org; posting-host="e362043f1eec5b72fb571caf32708303"; logging-data="11435"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18unfx2J6SPG7LJiOSfMV2v5V0T84y+fc4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) Cancel-Lock: sha1:LmB/8ivrSuMkLxAsjDNW3NgKPfY= sha1:7LPAp42nKh5Z76bC68EakEv1gUs= Xref: number.nntp.giganews.com comp.lang.ada:192612 Date: 2015-03-28T11:52:19+00:00 List-Id: "Dmitry A. Kazakov" writes: > 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? Is this through the /proc filesystem? It goes against the grain, but it does hide the gruesomeness of an ioctl-based interface; and not really further removed from reality than presenting GPIO as a character device.