Hi folks,
I'd be grateful for some input on why my global variable 'Green' is outside of the scope of my function 'flash'.
The error is below -
Kind regards, Al
/tmp/649693356/sketch_sep12a/sketch_sep12a.ino: In function 'void flash()':
/tmp/649693356/sketch_sep12a/sketch_sep12a.ino:15:16: error: 'Green' was not declared in this scope
exit status 1
/*
#include <MSTimer2.h>
const int Red = 5;
const int Green = 6;
const int upBtnPin=2;
const int downBtnPin=3;
const int Quickest=100;
const int Slowest=10000;
int Interval=500;
int IntervalStep=100;
*/
void flash(){
static boolean output=HIGH;
digitalWrite(Green,!output);
output=!output;
}
void setup() {
}
void loop() {
}
Thank you AWOL. Perhaps this forum needs to be renamed ‘troubleshooting installation’, then?
If ever you need help in my area of expertise, I can assure you it won’t come with a side salad of sarcasm. Al
Maybe English isn't your first language (I'm guessing it isn't, because you missed the "For problems with Arduino itself, NOT your project") , but I assure you there was no sarcasm in my response.