This is a good loop for any Arduino program, no matter how large...
void loop() {
checkInputs();
doCalculations();
setOutputs();
}
It really does make it easier to program if you seperate the internal logic from the digitalWrite()'s.
This is a good loop for any Arduino program, no matter how large...
void loop() {
checkInputs();
doCalculations();
setOutputs();
}
It really does make it easier to program if you seperate the internal logic from the digitalWrite()'s.