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
May 9, 2016 at 6:37 am
#3474
Keymaster
Hi,
The reason for the problem might be that when the “wait A is HI” block at the end of the loop is triggered, the program returns to the first “wait A is HI” block, which is immediately passed over as the button is probably still pressed. You could try adding a wait block just before the first wait block to allow time for the button to be released. Or, you could add “wait A is LO” blocks after each “wait A is HI” blocks to wait for the button to be released.
Hope this helps,
Joseph