|
Re: Setting Mechanism Position with Button
You need 2 functions.
Function 1: Looks at the Button, and sets a Variable when it is pressed. Make sure you "debounce" the button (all presses within n milliseconds is considered the same press).
Function 2: Looks at the Variable, and does whatever (move to different position) when it sees the variable set. When it is done, it resets the variable.
|