Hi, I'm a noob, and I don't know how to make a global variable, specifically boolean.
Any help?
Declare the variable outside of any function, usually at the start of the program.
boolean myVariable = true; //or false or with no initial value, as required
// GLOBALS
bool isGlobal1 = true; // C++ style
boolean isGlobal2 = true; // Arduino style
void loop()
{ }
void setup()
{ }
Thanks for the help.