Define Global Variables
// Global Variables
char auth[] = BLYNK_AUTH_TOKEN; // defines the character array auth
const int relayPins[] = {5, 6, 7, 8}; //defines the relay pins in an array as constant intgers
const int relay1 = 5; // variable for controlling digital I/O pin 5 on the Argon
const int relay2 = 6; // variable for controlling digital I/O pin 6 on the Argon
const int relay3 = 7; // variable for controlling digital I/O pin 7 on the Argon
const int relay4 = 8; // variable for controlling digital I/O pin 8 on the Argon
volatile int relayState1 = LOW; // volatile variable for reading the current state of the relay, also setting it to LOW
volatile int relayState2 = LOW;
volatile int relayState3 = LOW;
volatile int relayState4 = LOW;Last updated