Hardware config changes

This commit is contained in:
GHOSCHT 2020-08-07 16:04:01 +02:00
parent 9b2445db48
commit 59b6b5ad27
2 changed files with 4 additions and 4 deletions

View file

@ -2,9 +2,9 @@
const int relayCount = 4; const int relayCount = 4;
const int relayPin[relayCount] = {3, 4, 5, 6}; const int relayPin[relayCount] ={ 2, 3, 5, 6 };
const int btnPin[relayCount] = {7, 8, 9, 10}; const int btnPin[relayCount] ={ 7, 8, 9, 10 };
byte relayState[relayCount] = {HIGH, HIGH, HIGH, HIGH}; //high -> relay off byte relayState[relayCount] ={ HIGH, HIGH, HIGH, HIGH }; //high -> relay off
byte buttonState[relayCount]; byte buttonState[relayCount];
byte lastButtonState[relayCount]; byte lastButtonState[relayCount];

View file

@ -1,7 +1,7 @@
import SerialPort from 'serialport'; import SerialPort from 'serialport';
const Readline = require('@serialport/parser-readline'); const Readline = require('@serialport/parser-readline');
const port = new SerialPort('COM3', { const port = new SerialPort('COM6', {
baudRate: 9600, baudRate: 9600,
}); });