How to start an execution, only when INPUT by user?
Posted: Fri Mar 13, 2009 2:38 pm
hie,
I'd like to create a program flow as:
If user push the push button, the program will start execute and end the program.
If no input from user, the program will wait till it detects the Input.
In another word, the program will need to wait for Input==1 by the user to start the program.
I've tried to use the 'for' function to create loop and wait for input. My code is:
In my code, i tried to detect pin_C3 if there is any Input, the program will execute and end; else if no Input, the 'i' will equals to 1 and being loop bck till there is Input. However it doesn't goes like i espected on board
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum