This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
BlinkTwo | |
Turns two LEDs on and off in unison. | |
The delay times are controlled by two variables that are defined at the | |
beginning of the program. | |
This example code is in the public domain. | |
*/ | |
// Use the LEDs that are connected to I/O pins 12 and 13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
BlinkTwo | |
Turns two LEDs on and off in unison. | |
The delay times are controlled by two variables | |
that are defined at the beginning of the program. | |
This example code is in the public domain. | |
*/ | |
// Use the LEDs that are connected to I/O pins 12 and 13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <TimerOne.h> | |
#include <Wire.h> | |
//comment this out to see the demodulated waveform | |
//it is useful for debugging purpose. | |
#define MODULATED 1 | |
const int IR_PIN = 3; | |
const unsigned long DURATION = 180000l; | |
const int HEADER_DURATION = 2000; |
NewerOlder