Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By GeorgeIoak
#19078 I'm not sure about the details but as far as I know the Arduino IDE is just a simple interface to program. I think most of the code can be compiled since everything is written in "C".

I could be way wrong on this but I would just copy the code into a new sketch and try to compile. I'd be surprised if you don't get some errors but I think we might be able to work through the errors and get it to work.
User avatar
By martinayotte
#19122 Those past days, I was trying to convert the above project into ArduinoIDE.
It was a bit tedious since I had to add files from the Sming framwork into the project.
I've finally got thru compile/linking errors and got a binary uploaded.
Unfortunately, at runtime, the ESP is been resetted by the watchdog when the function irrecv.enableIRIn(); is called. :(
I've started to debug, it seems the crash occurs inside this function when it is instanciate the Timer(), ie : irReadTimer.initializeUs(USECPERTICK, readIR).start();
Maybe this is due that ArduinoESP cores already using it, I'm not sure.
I will have to continue the investigation or rewriting it from scratch.