Blogger

Delete comment from: Ken Shirriff's blog

Anonymous said...

Hello Ken,

Thank you for making complicated things simple.

I have started a project where holding down a button is necessary. Suppose I'm holding down a button and a LED is on until I release the button. I'm using NEC 1 IRC that sends a repeat code (0xFFFFFFFF) after the first press. I've written the code as you instructed.

void loop() {
if (irrecv.decode(&results)) {
if (results.value == 0x40BF18E7) {
digitalWrite(5,HIGH);
irrecv.resume();
}
}
}

I think you can see mistake I've done. Please help me using the repeat code. I would be thankful.

Oct 17, 2014, 7:51:32 AM


Posted to A Multi-Protocol Infrared Remote Library for the Arduino

Google apps
Main menu