www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Extending classical Arduino toolchain with LDC2/AVR

reply Dmitry Ponyatov <dponyatov gmail.com> writes:
Are there any working tutorial/samples for extending classical 
Arduino with LDC2/D ?

BetterC is enough for the first time, as the most effort I'll 
should be done for wrapping some of C libs.

* Debian Linux 12.
* ~/Arduino/arduino-ide_2.2.1_Linux_64bit, and
* LCD2 installed in /opt/ldc2-1.32.0-linux-x86_64/
Oct 16 2023
next sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Monday, 16 October 2023 at 12:32:44 UTC, Dmitry Ponyatov wrote:
 Are there any working tutorial/samples for extending classical 
 Arduino with LDC2/D ?

 BetterC is enough for the first time, as the most effort I'll 
 should be done for wrapping some of C libs.

 * Debian Linux 12.
 * ~/Arduino/arduino-ide_2.2.1_Linux_64bit, and
 * LCD2 installed in /opt/ldc2-1.32.0-linux-x86_64/
adr has examples for this somewhere. Check this https://dpldocs.info/this-week-in-d/Blog.Posted_2022_10_10.html
Oct 16 2023
parent Dmitry Ponyatov <dponyatov gmail.com> writes:
 adr has examples for this somewhere. Check this 
 https://dpldocs.info/this-week-in-d/Blog.Posted_2022_10_10.html
Thanks, I also found a first step variant with empty `.ino` file and cross-generation into `src/dlanged.S` assembly with LDC2. Next step is more complicated: manual writing binding with Arduino core and side libraries.
Oct 16 2023
prev sibling parent Denis Feklushkin <feklushkin.denis gmail.com> writes:
On Monday, 16 October 2023 at 12:32:44 UTC, Dmitry Ponyatov wrote:
 Are there any working tutorial/samples for extending classical 
 Arduino with LDC2/D ?
Classic Arduino hardware is 8-bit Atmega MCU
Jan 30