- Fri Jan 15, 2016 1:40 pm
#38883
Hi there...
I have a code wich is working on ArduinoUno, but does not work with ESP.
My remote is not recognized so I need to use sendRaw, i get that raw code/timmings with Arduino.
unsigned int IR_AA_ON[] = {4300,4400, 500,1650, 500,600, 500,1650, 500,1650, 550,550, 500,550, 550,1600, 550,550, 550,550, 500,1650, 500,600, 500,600, 500,1650, 500,1650, 500,550, 550,1650, 500,600, 500,600, 500,550, 500,1700, 500,1600, 550,1600, 550,1650, 500,1650, 500,1700, 450,1650, 550,1600, 550,600, 500,550, 500,600, 500,550, 500,600, 500,1650, 550,550, 500,1650, 500,1700, 500,1600, 500,600, 550,550, 500,550, 550,600, 500,1600, 550,550, 500,600, 500,550, 550,1650, 500,1650, 500,1650, 500};
int khz = 38; // 38kHz carrier frequency
for (int i = 0; i < 3; i++) {
irsend.sendRaw(IR_AA_ON, sizeof(IR_AA_ON) / sizeof(IR_AA_ON[0]), khz);
delay(5);
}
I can see the IRled blinking, but something must be different because does not work with ESP.
Any advice?
thks