diff options
| author | Donald Delmar Davis <don@suspectdevices.com> | 2012-10-03 11:01:38 -0700 |
|---|---|---|
| committer | Donald Delmar Davis <don@suspectdevices.com> | 2012-10-03 11:01:38 -0700 |
| commit | 1368288178e48ba6164e8623ea85046e59041932 (patch) | |
| tree | e82fcb8607d14e2fc459a5d00a7e2dab50e6221d /msp430/libraries/IRremote/examples/IRsendDemo/IRsendDemo.pde | |
| parent | aea305de919855fd68a9654830382360ad6a22b5 (diff) | |
move csource and core into place
Diffstat (limited to 'msp430/libraries/IRremote/examples/IRsendDemo/IRsendDemo.pde')
| -rw-r--r-- | msp430/libraries/IRremote/examples/IRsendDemo/IRsendDemo.pde | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/msp430/libraries/IRremote/examples/IRsendDemo/IRsendDemo.pde b/msp430/libraries/IRremote/examples/IRsendDemo/IRsendDemo.pde new file mode 100644 index 0000000..d864c82 --- /dev/null +++ b/msp430/libraries/IRremote/examples/IRsendDemo/IRsendDemo.pde @@ -0,0 +1,26 @@ +/* + * 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> + +IRsend irsend; + +void setup() +{ + Serial.begin(9600); +} + +void loop() { + if (Serial.read() != -1) { + for (int i = 0; i < 3; i++) { + irsend.sendSony(0xa90, 12); // Sony TV power code + delay(100); + } + } +} +
|
