Skip to content

Commit 1843b6b

Browse files
committed
initial add of IRsendDemoMagi.ino
1 parent 5ae5323 commit 1843b6b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
3+
* An IR LED must be connected to Arduino PWM pin 3.
4+
* Version 0.1 July, 2009
5+
* Copyright 2009 Ken Shirriff
6+
* http://arcfn.com
7+
*/
8+
9+
#include <IRremote.h>
10+
11+
IRsend irsend;
12+
13+
void setup()
14+
{
15+
Serial.begin(115200);
16+
}
17+
18+
void loop() {
19+
if (Serial.read() != -1) {
20+
delay(500);
21+
irsend.sendMagiQuest(0x19D1DD01, 0xB6);
22+
delay(3000);
23+
irsend.sendMagiQuest(0x18C04B01, 0xEEEE);
24+
delay(3000);
25+
irsend.sendMagiQuest(0x4FAB881, 0xB6);
26+
}
27+
}

0 commit comments

Comments
 (0)