comparison service/busyboxArduino/IRremote/examples/IRsendDemo/IRsendDemo.ino @ 960:a5c7e285fef5

add IRremote Ignore-this: c295c68f923af8d072841f1d7c1e5ab8 darcs-hash:20150120015526-312f9-ed34137ad90e3436dcaa2ec10358705a4f87a80b
author drewp <drewp@bigasterisk.com>
date Mon, 19 Jan 2015 17:55:26 -0800
parents
children
comparison
equal deleted inserted replaced
959:d05562532887 960:a5c7e285fef5
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(9600);
16 }
17
18 void loop() {
19 if (Serial.read() != -1) {
20 for (int i = 0; i < 3; i++) {
21 irsend.sendSony(0xa90, 12); // Sony TV power code
22 delay(40);
23 }
24 }
25 }