From 56419060d28268632ae22a5ee224d6dc6d89d933 Mon Sep 17 00:00:00 2001 From: dewdude Date: Mon, 30 Dec 2019 19:21:59 -0500 Subject: [PATCH] 0.1.3 - Adapted for physical reset circuit on 595. --- README.md | 1 + pma770.ino | 13 +++++-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d4865c4..b6e3d26 100644 --- a/README.md +++ b/README.md @@ -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.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.3 - Removed ShiftReset function. Replaced with reset circuit onboard. ```` diff --git a/pma770.ino b/pma770.ino index f7690a9..dfa7dd0 100644 --- a/pma770.ino +++ b/pma770.ino @@ -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 @@ -12,7 +12,6 @@ int latchPin = 11; int clockPin = 9; int dataPin = 12; -int srReset = 6; int IRin = 7; int srEnable = 5; int matrix = A0; @@ -33,8 +32,8 @@ void updateShiftRegister() void DontCrossTheStreams() { - out = 0; - updateShiftRegister(); + out = 0; + updateShiftRegister(); // Don't cross the streams! } @@ -99,9 +98,7 @@ void setup() pinMode(latchPin, OUTPUT); pinMode(dataPin, OUTPUT); pinMode(clockPin, OUTPUT); - pinMode(srReset, OUTPUT); pinMode(srEnable, OUTPUT); - digitalWrite(srReset,HIGH); remote.enableIRIn(); bitSet(out,5); lcd.init(); @@ -147,4 +144,4 @@ if (remote.decode(&ircode)) { remote.resume(); } delay(200); -} +} \ No newline at end of file