Using D for Raspberry Pi expirements
Aldo
aldocd4 at outlook.com
Sun Sep 29 16:26:48 UTC 2019
On Sunday, 29 September 2019 at 11:36:00 UTC, aberba wrote:
> On Thursday, 26 September 2019 at 00:09:30 UTC, Mike Franklin
> wrote:
>> On Wednesday, 25 September 2019 at 23:56:45 UTC, aberba wrote:
>>> I'm looking for resources on using D for basic Raspberry Pi
>>> programming...stuff like turning on and off an LED light. I
>>> believe it requires being able to call the Raspberry OS core
>>> APIs from D as available in Python.
>>>
>>> Anyone here tried something like that using D?
>>
>> I haven't tried with D yet, but I use C# and mono calling into
>> the pigpio C library (http://abyz.me.uk/rpi/pigpio/pdif2.html)
>> and it workes great. You should be able to do the same with D.
>>
>> Mike
>
> I have no idea how to do that from D. Any help/resources on
> that?
Maybe you can use this dub package?
http://code.dlang.org/packages/dgpio
I'm using a D app on a raspberry Pi to open my house portal for 1
year now. It works perfectly. The "hardest" part is the
compilation.
I tried this guide yesterday:
https://wiki.dlang.org/Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices and it worked perfectly fine. I compiled my app from Windows with a Debian (from the windows store) and uploaded my executable compiled with ARM target.
More information about the Digitalmars-d-learn
mailing list