This file contains 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
//Origional code from http://www.ediy.com.my/index.php/blog/item/74-digispark-infrared-receiver | |
//Modified by Daniel Splawski 02/11/2013 | |
//Uncomment DigiKeyboard statments for debugging | |
//#include <DigiKeyboard.h> | |
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(0,1); // RX, TX | |
int irPin = 2; //Sensor pin connect to digital pin2 (ATINY85 pin7) |
This file contains 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 <SoftwareSerial.h> | |
SoftwareSerial mySerial(8, 7); // RX, TX | |
int remoteOutput = 0; | |
int previousOutput = 0; | |
int i = 0; | |
int pirPin = 4; //digital | |
int lightPin = 0; //light sensor pin |