mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-10 03:32:49 +00:00
adding Panasonic and JVC types for IRrecord
This commit is contained in:
@@ -80,6 +80,12 @@ void storeCode(decode_results *results) {
|
|||||||
else if (codeType == SONY) {
|
else if (codeType == SONY) {
|
||||||
Serial.print("Received 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) {
|
else if (codeType == RC5) {
|
||||||
Serial.print("Received RC5: ");
|
Serial.print("Received RC5: ");
|
||||||
}
|
}
|
||||||
@@ -114,6 +120,16 @@ void sendCode(int repeat) {
|
|||||||
Serial.print("Sent Sony ");
|
Serial.print("Sent Sony ");
|
||||||
Serial.println(codeValue, HEX);
|
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) {
|
else if (codeType == RC5 || codeType == RC6) {
|
||||||
if (!repeat) {
|
if (!repeat) {
|
||||||
// Flip the toggle bit for a new button press
|
// Flip the toggle bit for a new button press
|
||||||
|
|||||||
Reference in New Issue
Block a user