I'm having trouble with the script error message redefinition or void setup()
readme.txt (87 Bytes)
I'm having trouble with the script error message redefinition or void setup()
readme.txt (87 Bytes)
Not sure what that txt file's meant to be but at a guess I'd say you have more than one of either or both of setup() and loop() in your sketch. Only one of each is allowed.
I get your error when I compile this with 2x setup()s:
void setup() {
// put your setup code here, to run once:
}
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Have you by any chance got 2 tabs open in the IDE each with a setup() function in them ?
If not then please post your complete program here.
UKHeliBob:
Have you by any chance got 2 tabs open in the IDE each with a setup() function in them ?
If not then please post your complete program here.
Hi UKHeliBob,
I have the similar problem and closed the other tabs. Works as a charm. Thanks