I’m working on autocomplete feature for Arduino IDE on Android and i’d like to ask some help with native code as i’m Java developer original.
For example, I need to build compile string for autocomplete.
First, i add
#include <Arduino.h> to sketch source code.
and defines global variable Serial if some condition is asserted:
#if defined(UBRRH) || defined(UBRR0H) extern HardwareSerial Serial; #elif defined(USBCON)
As far as i understand it depends on board type (Uno, Mega, etc) so what header files should be included first for each board type?
I’ve adding the next includes by default:
Here i assume it’s using “arduino” core. The absolute path are corrected to actual locations of coarse.
Thanks in advance