-->
Page 1 of 4

IR receiver with ESP8266 Arduino IDE

PostPosted: Sun May 31, 2015 3:07 pm
by Lstt
Dear sisr! Sorry for my English..Who may help me move this repository under Sming https://github.com/sh4d0w12/esp8266_IRremote - to the ESP8266 Arduino IDE...I am not enough knowledge for this... :(

Re: IR receiver with ESP8266 Arduino IDE

PostPosted: Sun May 31, 2015 7:50 pm
by GeorgeIoak
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.

Re: IR receiver with ESP8266 Arduino IDE

PostPosted: Mon Jun 01, 2015 1:06 am
by Lstt
Ok, i try some later, thank you for answer!

Re: IR receiver with ESP8266 Arduino IDE

PostPosted: Mon Jun 01, 2015 9:25 am
by martinayotte
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.