jon williams ... Assistance please
bobsmith
Posts: 36
in this code that you said where in it does it say:
if in0 = 1
goto mode
Wait_For_2Sec:
· timer = 0
Check_Input:
· IF IN1 = 0 THEN Wait_For_2Sec
· timer = timer + 1
· PAUSE 50
· IF timer < 40 THEN Check_Input
if in0 = 1
goto mode
Wait_For_2Sec:
· timer = 0
Check_Input:
· IF IN1 = 0 THEN Wait_For_2Sec
· timer = timer + 1
· PAUSE 50
· IF timer < 40 THEN Check_Input
Comments
Mode_0:···························· '·force button down for 2 seconds
· timer = 0
Check_Input:
· IF IN1 = 0 THEN Mode_0
· timer = timer + 1
· PAUSE 50
· IF timer < 40 THEN Check_Input
Mode_1:
· ' mode 1 code goes here
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 10/7/2004 10:11:07 PM GMT