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 23:02:06 +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 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.2 Xref: reader02.eternal-september.org comp.lang.ada:50083 Date: 2018-01-23T23:02:06+01:00 List-Id: On 2018-01-23 22:30, slos wrote: > Of course since the HAT connector provides only signals like GPIO, > I2C, SPI, UART, you can connect whatever you want to it. Well, usually we use BeagleBone which has that already and more, e.g. CAN. But the problem is that a bit different stuff is needed, in automation, at least: a few A/D and D/A converters, minimally 16-bit, independently sampled, with an optocoupler, some for PT100, an incremental encoder or a frequency meter. > Why would you need root privileges to run a C library ? > You have to set the proper rights to a user or group and that should suffice. That could work if internals of the library is known, e.g. all things it accesses and all ways it uses. Finding all these and experimenting might take a lot of time. When there is a proper driver it is just one place to fix. >> What for? If you say that there is a C library, you can call it directly >> from Ada. > No, I said there is a C++ library and a Python binding on top. > Actually the Python library uses the C++ library for some sensors and devices directly for joystick and framebuffer. Is the library documented? Then there is no problem. Python does not have anything what Ada does not have already. Surely Ada's C++ interface is a bit daring, but Python has none of that sort. My guess is that all interface is plain C. > It could allow some people interested in Ada language to play on an inexpensive target. Is it useless ? > The Raspberry Pi was designed exactly for that purpose. Teaching and experiments for anyone interested in. Yes, but that would not pay salaries, unfortunately. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de