Home 2018 › Forums › Crumble › General › Use a button to turn motor on/off/change direction › Reply To: Use a button to turn motor on/off/change direction
I’m trying to make a little crumble project that will start the script when when a button on InputA is pressed and stop the script when the same button is pressed. I’m getting tied in knots trying to get it to work. I’ve got a wait until A is High at the beginning and an if A is high again later in the script that stops the motors but I can’t figure out the looping situation to get it back to the beginning to wait for the button to be pressed again.
Any help would be much appreciated or let me know how you would approach it?