Blogger

Delete comment from: Ken Shirriff's blog

Iain said...

I also got this working with another remote - which is where i stole the IR led from,


if (irrecv.decode(&results)) {

long int decCode = results.value;
Serial.println(decCode);
switch (results.value) {
case 805778:
Serial.println("Forward");
digitalWrite(forwardPin, HIGH); // sets the LED on
break;



It was turning on and off LED's when I pressed the right button.

Slightly different to your:

if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}

Feb 21, 2013, 11:24:27 AM


Posted to Testing the Arduino IR remote library

Google apps
Main menu