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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Raspberry Pi SenseHAT / AstroPi Date: Tue, 23 Jan 2018 18:40:09 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <10c0eb19-4d5c-4ef2-b3a8-751ae3c5b530@googlegroups.com> NNTP-Posting-Host: f8WEMHpTPFsoaovNG/8BOQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:50077 Date: 2018-01-23T18:40:09+01:00 List-Id: On 2018-01-23 16:45, slos wrote: > To play with Raspberry Pi I have a SenseHAT, renamed from AstroPi, which is a HAT with some sensors : > https://www.raspberrypi.org/documentation/hardware/sense-hat > > Since it was designed to go in space, I would have thought an Ada library to be available... ;-) > But I could not find one. :-( Way too expensive and useless for automation purposes. There are virtually thousands of different hats you cannot expect all of them supported. Anyway for [semi-]serious use one usually designs a new one. E.g. for a BeagleBone board our partner designed a hat with many A/D converters and a tiger chip. The problem is that the architecture of ARM boards does not allow use of modular components. A monolithic sensor/actuator board never has a chance to meet the requirements, so one must design it new each time. > So what can be found is a Python library on top of a C++ one. Actually I would expect a proper driver. A C library means it must run with root privileges. Not good. > But maybe I have missed something already done in Ada ? What for? If you say that there is a C library, you can call it directly from Ada. P.S. We could consider supporting it in our middleware, but as I said, at first glance it looks too expensive and much useless. Then it does not scale other architectures. We usually support boards / protocols available for more that just Raspberry Pi. Raspberry Pi has a very bad call among customers. One can show it as proof of the concept but nothing more. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de