Trying to write a XOD wrapper for https://github.com/tve/lx16a-servo
The 1st issue is that they put header files in a src sub-folder & XOD cannot find it. I’ve tried using #include <src\LX16AServo.h> instead of just #include <LX16AServo.h>, but that does not help. My short-term fix is to copy the .h & .cpp files up one folder so XOD can find them.
The 2nd issue is that the library uses Serial1, but XOD is complaining it is not defined:
C:\Users\gweimer\AppData\Local\Temp\xod_temp_sketchbookztURTw\libraries\lx16a_servo/LX16AServo.h:4:17: error: 'Serial1' was not declared in this scope : _port(Serial1)
I see that it is defined here:
xod/packages/packages/arduino/hardware/avr/1.6.21/cores/arduino/HardwareSerial.h: extern HardwareSerial Serial1;
but adding #include <HardwareSerial.h> to my wrapper doesn’t help.
Here is what I have so far: lx16a-servo.xodball (8.7 KB) lx16a-example is how I see it being used.