Skip to content

Instantly share code, notes, and snippets.

View splawski's full-sized avatar

Daniel Splawski splawski

  • Chetwynd BC Canada
View GitHub Profile
#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
//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)