Help a newb pt 2?-
Exilict
Posts: 31
This is my 2nd newbie question :-(
I have searched and searched but I cant find a command that will pause the program untill there is a input on one pin.· I am simulating a trigger pull, and I dont want anything to happen untill that switch is pulled.
Help would be great :-D
Thanks
·· Chris
I have searched and searched but I cant find a command that will pause the program untill there is a input on one pin.· I am simulating a trigger pull, and I dont want anything to happen untill that switch is pulled.
Help would be great :-D
Thanks
·· Chris
Comments
Hold_Here:
· IF (IN0 = 0) THEN Hold_Here
Another way to do it, without a label, is....
· DO : LOOP UNTIL (IN0 = 1)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
-Chris