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, });