Go Down

Topic: pot simulation (Read 1 time) 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.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up