|
|
@ -1,7 +1,7 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
PMA770Relay 0.1.1
|
|
|
|
PMA770Relay 0.1.3
|
|
|
|
|
|
|
|
|
|
|
|
dewdude@gmail.com - 29-12-2019
|
|
|
|
dewdude@gmail.com - 30-12-2019
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#include <Wire.h>
|
|
|
|
#include <Wire.h>
|
|
|
@ -12,7 +12,6 @@
|
|
|
|
int latchPin = 11;
|
|
|
|
int latchPin = 11;
|
|
|
|
int clockPin = 9;
|
|
|
|
int clockPin = 9;
|
|
|
|
int dataPin = 12;
|
|
|
|
int dataPin = 12;
|
|
|
|
int srReset = 6;
|
|
|
|
|
|
|
|
int IRin = 7;
|
|
|
|
int IRin = 7;
|
|
|
|
int srEnable = 5;
|
|
|
|
int srEnable = 5;
|
|
|
|
int matrix = A0;
|
|
|
|
int matrix = A0;
|
|
|
@ -99,9 +98,7 @@ void setup()
|
|
|
|
pinMode(latchPin, OUTPUT);
|
|
|
|
pinMode(latchPin, OUTPUT);
|
|
|
|
pinMode(dataPin, OUTPUT);
|
|
|
|
pinMode(dataPin, OUTPUT);
|
|
|
|
pinMode(clockPin, OUTPUT);
|
|
|
|
pinMode(clockPin, OUTPUT);
|
|
|
|
pinMode(srReset, OUTPUT);
|
|
|
|
|
|
|
|
pinMode(srEnable, OUTPUT);
|
|
|
|
pinMode(srEnable, OUTPUT);
|
|
|
|
digitalWrite(srReset,HIGH);
|
|
|
|
|
|
|
|
remote.enableIRIn();
|
|
|
|
remote.enableIRIn();
|
|
|
|
bitSet(out,5);
|
|
|
|
bitSet(out,5);
|
|
|
|
lcd.init();
|
|
|
|
lcd.init();
|
|
|
|