i think i dont know what im doing with the loop
i have momentary button start stopping of timer, on delay(1000);
the button isnt responsive. think due loop reading button press every 1 second. question how have button on own quicker loop?
the button isnt responsive. think due loop reading button press every 1 second. question how have button on own quicker loop?
i don't understand want code do, but
a( if want wait button press before continues, use like
while(digitalread(buttonpin) == low) {}
b( use interrupts.
a( if want wait button press before continues, use like
while(digitalread(buttonpin) == low) {}
b( use interrupts.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > i think i dont know what im doing with the loop
arduino
Comments
Post a Comment