0.1.3 - Adapted for physical reset circuit on 595.

master
Jay 4 years ago
parent 3136e0d30c
commit 56419060d2

@ -20,5 +20,6 @@ Schematics and pictures up later.
29-Dec-2019: Version 0.1 - Added a display. Cleaned up code. Made a repository. 29-Dec-2019: Version 0.1 - Added a display. Cleaned up code. Made a repository.
29-Dec-2019: Version 0.1.1 - Added preliminary IR remote support 29-Dec-2019: Version 0.1.1 - Added preliminary IR remote support
30-Dec-2019: Version 0.1.2 - Controls ShiftReset and OutputEnable on 595 to prevent random start-up state. 30-Dec-2019: Version 0.1.2 - Controls ShiftReset and OutputEnable on 595 to prevent random start-up state.
30-Dec-2019: Version 0.1.3 - Removed ShiftReset function. Replaced with reset circuit onboard.
```` ````

@ -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;
@ -33,8 +32,8 @@ void updateShiftRegister()
void DontCrossTheStreams() void DontCrossTheStreams()
{ {
out = 0; out = 0;
updateShiftRegister(); updateShiftRegister();
// Don't cross the streams! // Don't cross the streams!
} }
@ -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();
@ -147,4 +144,4 @@ if (remote.decode(&ircode)) {
remote.resume(); remote.resume();
} }
delay(200); delay(200);
} }
Loading…
Cancel
Save