-
Thank you, @asez73, it gave me the starting point, however I cannot make it compile; do you have any idea where the platform_config.h file is located?
-
I found no example or tutorial of this. If it can, how?
Let us use the following c file as example:
//What files do I include here??? extern int getInputState(int pos); char* jsCode = "\ function ShowInputsState()\ {\ var res = '';\ for (var i = 0; i < 10; i++)\ {\ var state = getInputState(i);\ res += '\nState of Input ' + i + ' is: ' + state;\ }\ return res;\ }\ \ print(ShowInputsState());\ \ "; void main() { //What do I do here to run the js code??? }
For now, I'm trying to compile only Espruino with Visual Studio 2013.