hello,
i'm try create "menu" lcd screen.
i'm using cycle this:
int x=digitalread(button);
if(x==high){
delay(1000);
x=digitalread(button);
while(x==low){
....
lcd.print("hello");
....
x=digitalread(button);
}}
but "hello" print blink because while cycle continue loop , printing string.
how can "pause" program (i print "hello" 1 time) , waiting new input?
thx help. (ps.sorry bad english)
i'm try create "menu" lcd screen.
i'm using cycle this:
int x=digitalread(button);
if(x==high){
delay(1000);
x=digitalread(button);
while(x==low){
....
lcd.print("hello");
....
x=digitalread(button);
}}
but "hello" print blink because while cycle continue loop , printing string.
how can "pause" program (i print "hello" 1 time) , waiting new input?
thx help. (ps.sorry bad english)
quote
i print "hello" 1 timeprint before while loop.
Arduino Forum > Using Arduino > Programming Questions > How to pause the loop without using delay
arduino
Comments
Post a Comment