Hope y’all are well.
I have been struggling with turning the button into a toggle for way too long now in vex code.
What I’m wanting to do is press a button turn on a motor. Press the button again turn motor off.
Basically like a light switch.
In robotC that looked like this:
I need to be able to count now. I don’t understand that process. If someone could help me out it would be very much appreciated.