I am trying to write a library that could compile with both Arduino and Energia (MSP430).
It should be easy because there are only a few changes involved in the .h header file (calls to different libraries) and the .cpp implementation file. I try to use the following preprocessor directives.
#if defined (ARDUINO) #elif defined (ENERGIA) #endif
However this does not work as Energia still try to compile the arduino code.
Am I doing something wrong ?
Did someone experience the same ?