Added Aiwa protocol (remote control RC-T501).

Added Aiwa protocol (remote control RC-T501) based on lirc file.
Updated IRrecvDump example, added SendDemo example (AiwaRCT501SendDemo).
This commit is contained in:
Christian Musa
2014-04-30 16:28:31 -03:00
parent c0446fd659
commit bed4cc5c97
5 changed files with 162 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include "IRremote.h"
#define POWER 0x7F80
IRsend irsend;
void setup() {
Serial.begin(9600);
Serial.println("Arduino Ready");
}
void loop() {
if (Serial.read() != -1) {
irsend.sendAiwaRCT501(POWER);
delay(60); // Optional
}
}

View File

@@ -54,6 +54,10 @@ void dump(decode_results *results) {
}
else if (results->decode_type == JVC) {
Serial.print("Decoded JVC: ");
}
else if (results->decode_type == AIWA_RC_T501) {
Serial.print("Decoded AIWA RC T501: ");
}
else if (results->decode_type == WHYNTER) {
Serial.print("Decoded Whynter: ");