Go Down

Topic: pot simulation (Read 2031 times) previous topic - next topic


No, you can:

for (int x = 0; x<8; x=x+1){
digitalWrite (INC, HIGH);
digitalWrite (INC, LOW);

but this is a loop that will run 8 times, thus 8 pulses.

I normally declare all my variables at the top of the sketch, vs locally like this. x can always be reused by other loops as long as only 1 at a time is running.

Go Up