Hardware config changes
This commit is contained in:
parent
9b2445db48
commit
59b6b5ad27
2 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
Reference in a new issue