Delete comment from: Ken Shirriff's blog
hey ..!! great work..!! but here i m suffering a bit..
i am trying to take output in LCD by using your library.. the code is here..
#include
#include
LiquidCrystal lcd(12, 11, 7, 6, 5, 4);
const int irReceiverPin = 2;
IRrecv irrecv(irReceiverPin);
decode_results results;
void setup() {
lcd.begin(16, 2);
lcd.print("IR Decoder");
irrecv.blink13(true);
irrecv.enableIRIn();
}
void showIRProtocol(decode_results *results)
{
switch(results->decode_type) {
case NEC:
lcd.print("NEC");
break;
case SONY:
lcd.print("SONY");
break;
case RC5:
lcd.print("RC5");
break;
case RC6:
lcd.print("RC6");
break;
default:
lcd.print("Unknown");
break;
}
lcd.print(" ");
lcd.print(results->value, HEX);
lcd.print(" (");
lcd.print(results->bits);
lcd.print(")");
}
void loop() {
lcd.setCursor(0, 1);
if (irrecv.decode(&results)) {
showIRProtocol(&results);
irrecv.resume();
}
}
i got this code from
http://coopermaa2nd.blogspot.in/2011/03/14-lcd-ir-decoder.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+CooperMaa+%28Cooper+Maa%29
every time wen i give some input from universal remote control.. it shows "unknown" i have tried for almost every brand IR remote..
May 5, 2012, 2:40:18 AM
Posted to A Multi-Protocol Infrared Remote Library for the Arduino

