From f396a790f7b4a90c7d09534fbc3b8ed66edb63f6 Mon Sep 17 00:00:00 2001 From: "lumbric (antares)" Date: Thu, 20 Feb 2014 21:35:50 +0100 Subject: [PATCH] adding Panasonic and JVC types for IRrecord --- examples/IRrecord/IRrecord.ino | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/IRrecord/IRrecord.ino b/examples/IRrecord/IRrecord.ino index caf86de3..bf290fa3 100644 --- a/examples/IRrecord/IRrecord.ino +++ b/examples/IRrecord/IRrecord.ino @@ -80,6 +80,12 @@ void storeCode(decode_results *results) { else if (codeType == SONY) { Serial.print("Received SONY: "); } + else if (codeType == PANASONIC) { + Serial.print("Received PANASONIC: "); + } + else if (codeType == JVC) { + Serial.print("Received JVC: "); + } else if (codeType == RC5) { Serial.print("Received RC5: "); } @@ -114,6 +120,16 @@ void sendCode(int repeat) { Serial.print("Sent Sony "); Serial.println(codeValue, HEX); } + else if (codeType == PANASONIC) { + irsend.sendPanasonic(codeValue, codeLen); + Serial.print("Sent Panasonic"); + Serial.println(codeValue, HEX); + } + else if (codeType == JVC) { + irsend.sendPanasonic(codeValue, codeLen); + Serial.print("Sent JVC"); + Serial.println(codeValue, HEX); + } else if (codeType == RC5 || codeType == RC6) { if (!repeat) { // Flip the toggle bit for a new button press