Skip to content

Commit ec356c9

Browse files
committed
Merge branch 'lumbric-master' into dev
merging Arduino-IRremote#54
2 parents 3763012 + 1c3275f commit ec356c9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/IRrecord/IRrecord.ino

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ void storeCode(decode_results *results) {
8080
else if (codeType == SONY) {
8181
Serial.print("Received SONY: ");
8282
}
83+
else if (codeType == PANASONIC) {
84+
Serial.print("Received PANASONIC: ");
85+
}
86+
else if (codeType == JVC) {
87+
Serial.print("Received JVC: ");
88+
}
8389
else if (codeType == RC5) {
8490
Serial.print("Received RC5: ");
8591
}
@@ -114,6 +120,16 @@ void sendCode(int repeat) {
114120
Serial.print("Sent Sony ");
115121
Serial.println(codeValue, HEX);
116122
}
123+
else if (codeType == PANASONIC) {
124+
irsend.sendPanasonic(codeValue, codeLen);
125+
Serial.print("Sent Panasonic");
126+
Serial.println(codeValue, HEX);
127+
}
128+
else if (codeType == JVC) {
129+
irsend.sendPanasonic(codeValue, codeLen);
130+
Serial.print("Sent JVC");
131+
Serial.println(codeValue, HEX);
132+
}
117133
else if (codeType == RC5 || codeType == RC6) {
118134
if (!repeat) {
119135
// Flip the toggle bit for a new button press

0 commit comments

Comments
 (0)