eclipse / mraa

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.
http://mraa.io
MIT License
1.36k stars 613 forks source link

Lattepanda MRAA Support ? #1059

Open LabIoT2021 opened 3 years ago

LabIoT2021 commented 3 years ago

Hi Dev, I'm Robert. I'd like to use MRAA on Lattepanda Delta Intel Celeron N4100. It also have an arduino leonardo connection. Is MRAA support for this device ? I'd like to use GPIO on arduino leonardo by using MRAA Lib on Lattepanda Delta Ubuntu 18.04 LTS installed, but I can't find pin mapping for this device. Any suggestion for this problem? What should I do first, if I want to make pin map for this device?

Best regards,

Robert

Propanu commented 3 years ago

Hi Robert,

Unfortunately Lattepanda is not currently supported by the MRAA project because it was originally advertised as a Windows platform (see also #549). However, just as you pointed out, it does have a built-in atmega32u4 chip that MRAA may be able to use with Linux. Lattepanda is definitely not the only instance of needing to control a Microchip (Atmel) microcontroller from an x86 board. So we introduced the ability to add subplatforms within user applications that use the same functions as MRAA normally would.

In order for this to work, you'd be using the UART port connecting the atmega32u4 to the x86 chip. Then there's the issue of "forcing" a known MRAA platform with UART ports so you can test it. Otherwise MRAA will detect it as unknown and you won't have any I/O available. The atmega32u4 needs to be flashed with a version of the Firmata Arduino sketch before you can add it as a subplatform, and your mileage will vary based on how well the sketch works for atmega32u4. We only tested it with the Arduino101/Arduino UNO boards so if you can get it to work, that would be amazing news for Lattepanda developers. You can read more about Firmata support in our documentation.

Let us know if you have questions, thanks!