Instructions
www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
long on2 = 0x00FF629D;
long off2 = 0x00FFA857;
long on3 = 0x00FFE21D;
long off3 = 0x00FF906F;
long on4 = 0x00FF22DD;
long off4 = 0x00FF6897;
long on5 = 0x00FF02FD;
long off5 = 0x00FF9867;
long on6 = 0x00FFC23D;
long off6 = 0x00FFB04F;
IRrecv irrecv(RECV_PIN);
decode_results results;
void dump(decode_results *results) {
int count = results->rawlen;
if (results->decode_type == UNKNOWN){
Serial.println("Could not decode message");
}
else {
if (results->decode_type == NEC){
Serial.print("Decoded NEC: ");
}
else if (results->decode_type == SONY) {
Serial.print("Decoded SONY: ");
}
else if (results->decode_type == RC5) {
Serial.print("Decoded RC5: ");
}
else if (results->decode_type == RC6) {
Serial.print("Decoded RC6: ");
}
Serial.print(results->value, HEX);
Serial.print(" (");
Serial.print(results->bits, DEC);
Serial.println(" bits)");
if(results->value == 0xFFA25D)
Serial.println("Button: Power");
else if(results->value == 0xFF629D)
Serial.println("Button: Mode");
else if(results->value == 0xFFE21D)
Serial.println("Button: Mute");
else if(results->value == 0xFF22DD)
Serial.println("Button: Play/Stop");
else if(results->value == 0xFF02FD)
Serial.println("Button: <<");