void setup()
void setup() {
// open serial port with computer; use for debugging
//Serial.begin(9600);
// open serial port between HMI and Arduino Nano Every; recieve and send messages
Serial1.begin(9600);
pinMode(relay1, OUTPUT); // configure relay 1 pin as an output
pinMode(relay2, OUTPUT); // configure relay 2 pin as an output
}Last updated