Есть пульт от ТВ philips. С него получил дамп кнопки. 10037 Decoded RC6: 10037 (20 bits) Raw (38): -18114 2700 -850 450 -900 500 -400 450 -450 1350 -1300 450 -400 500 -350 550 -400 450 -400 500 -400 500 -400 500 -400 500 -400 450 -400 500 -400 500 -400 950 -800 950 -850 500 37 Decoded RC6: 37 (20 bits) Raw (40): 7980 2750 -800 500 -850 500 -350 500 -400 500 -850 950 -400 450 -450 450 -400 500 -400 500 -350 500 -400 500 -400 500 -400 500 -400 450 -400 500 -400 500 -400 900 -850 950 -850 500 10037 Decoded RC6: 10037(20 bits) Raw (38): 20380 2700 -850 500 -850 450 -450 450 -450 1300 -1300 500 -400 500 -400 450 -450 450 -400 500 -400 500 -400 450 -450 450 -400 500 -350 500 -450 450 -450 900 -850 900 -900 400 0 Could not decode message Raw (24): -6550 150 -3400 100 -800 150 -1600 250 -700 300 -650 250 -1550 200 -700 200 -650 200 -200 250 -1050 700 -1000 250 Поправил скетч, что бы обрабатывались все события при нажатой кнопке - как поправить правильно данный код, а то реле щелкает, то как надо, то ппц раз-через раз. ((( if(irrecv.decode(&results)){ if(irrecv.decode(&results)){ if ((results.value == 0x10037) || (results.value == 0x37) || (results.value == UNKNOWN)) digitalWrite(LED_PIN, !digitalRead(LED_PIN)); irrecv.resume(); }
Поменял код на Код (Text): if(irrecv.decode(&results)){ if ((results.value == 0x10037) || (results.value == 0x37) || (results.value == UNKNOWN)) digitalWrite(LED_PIN, !digitalRead(LED_PIN)); delay (500); irrecv.resume(); стало немного лучше