From 59b6b5ad275af65a2388b3a112cd48894f691e57 Mon Sep 17 00:00:00 2001 From: Ghost <31184695+GHOSCHT@users.noreply.github.com> Date: Fri, 7 Aug 2020 16:04:01 +0200 Subject: [PATCH] Hardware config changes --- Arduino/ArduinoRelayControl.ino | 6 +++--- .../app/renderer/store/reducers/comConnectionReducer.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Arduino/ArduinoRelayControl.ino b/Arduino/ArduinoRelayControl.ino index 38476db..54d1053 100644 --- a/Arduino/ArduinoRelayControl.ino +++ b/Arduino/ArduinoRelayControl.ino @@ -2,9 +2,9 @@ const int relayCount = 4; -const int relayPin[relayCount] = {3, 4, 5, 6}; -const int btnPin[relayCount] = {7, 8, 9, 10}; -byte relayState[relayCount] = {HIGH, HIGH, HIGH, HIGH}; //high -> relay off +const int relayPin[relayCount] ={ 2, 3, 5, 6 }; +const int btnPin[relayCount] ={ 7, 8, 9, 10 }; +byte relayState[relayCount] ={ HIGH, HIGH, HIGH, HIGH }; //high -> relay off byte buttonState[relayCount]; byte lastButtonState[relayCount]; diff --git a/Dashboard/app/renderer/store/reducers/comConnectionReducer.js b/Dashboard/app/renderer/store/reducers/comConnectionReducer.js index ce50e54..6892e44 100644 --- a/Dashboard/app/renderer/store/reducers/comConnectionReducer.js +++ b/Dashboard/app/renderer/store/reducers/comConnectionReducer.js @@ -1,7 +1,7 @@ import SerialPort from 'serialport'; const Readline = require('@serialport/parser-readline'); -const port = new SerialPort('COM3', { +const port = new SerialPort('COM6', { baudRate: 9600, });