I've got a weird problem & I've made a little test program for troubleshooting purposes...here's the code:
void setup(){ Serial.begin(57600); }
void loop(){ Serial.println("main"); doit;
} // main loop
void doit() { Serial.println("doit");
}
The subroutine "doit" never executes - what am I doing wrong?
You are not calling it. Calling a function requires that the function name be followed by open and close parentheses, even when the function takes no arguments.
Yes, I just caught this & was rushing back here to delete my post. Thanks for the help...
Crow: was rushing back here to delete my post
Don't delete it.... someone else may benefit from your mistake and the posted solution.