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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4f9a2b7c164500f2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.93.6 with SMTP id cq6mr1989202wib.2.1355170366412; Mon, 10 Dec 2012 12:12:46 -0800 (PST) X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.116.97 Path: l12ni31327wiv.1!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nntpfeed.proxad.net!dedibox.gegeweb.org!gegeweb.eu!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada on Raspberry Pi: new article in MagPi issue 8 Date: Mon, 10 Dec 2012 20:12:45 +0000 Organization: A noiseless patient Spider Message-ID: References: <8ecc163c-7772-4528-a0d0-eb1ecfd67d98@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="2a5d6fb105b6730bdbc5ec48c6e18f59"; logging-data="2347"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VEAd3s3ytca5MR2u0somGVDvrD03ZV7A=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:/1soovvZz1drUeFIQZX9YZ7QUlo= sha1:OWKUnIjjSoiP+upWUwir9hrE4ho= Content-Type: text/plain Date: 2012-12-10T20:12:45+00:00 List-Id: "Luke A. Guest" writes: > On 2012-12-02, Rego, P. wrote: >> I had a very happy surprise today when I opened the MagPi issue 8 and found >> the Ada article "Beginning Ada" by Luke Guest. And it's the second part, >> started in issue 6 (which I had not read til today...). Congratulations! > > Thanks, the idea was to get Ada into the minds of kids reading that magazine > as an additional language and to prove it can be used for beginners with no > programming experience whatsoever. > > I'm also trying to think of a good project to document in the next articles, I > have two ideas, but not sure about them. The aim would be to show the use of: > > 1) packages > 2) possibly separates for platform dependencies > 3) GNAT project files & Makefiles > 4) Representation clauses for mapping to hardware or C API's > 5) Maybe tasking > > Any ideas? It has to have a cool factor. Mine are: The one I'm having fun with is an interface to I2C, targeted at the MCP23017 I/O expander. "Writeup": http://raspi-i2c-ada.sourceforge.net/ Code tip: https://sourceforge.net/p/raspi-i2c-ada/code/ci/e83f5cbe29602a7f306dcd917d8d79c61d7c6399/tree/ At the moment it detects input changes via polling; I'm working on an interrupt-driven variant (the nearest to interrupt-driven you'll get in userland, anyway, I think) but I haven't pushed those changes yet. The "interrupt" changes will be based on WiringPi at https://projects.drogon.net/raspberry-pi/wiringpi/ and will effectively provide an Ada interface to GPIO - I'm trying to avoid too much direct work with GPIO in case I let the magic smoke out. Work is a tad held up due to illness; hopefully both I and the work are on the road to recovery!