8 #ifdef USE_DEFAULT_ENABLE_IR_IN
9 #error Must undef USE_DEFAULT_ENABLE_IR_IN
13 IRAM_ATTR
void IRTimer();
23 timer = timerBegin(1, 80, 1);
24 timerAttachInterrupt(timer, &IRTimer, 1);
26 timerAlarmWrite(timer, 50,
true);
27 timerAlarmEnable(timer);
39 timerDetachInterrupt(timer);
43 ledcSetup(LEDCHANNEL, khz * 1000, 8);