mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-04 20:42:49 +00:00
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:
25
examples/AiwaRCT501SendDemo/AiwaRCT501SendDemo.ino
Normal file
25
examples/AiwaRCT501SendDemo/AiwaRCT501SendDemo.ino
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user