I’m trying to make a button function as a toggle. I wanted a button to make my motorized wheelie bar hold at a certain angle. I got it to hold at the angle, but I can’t figure out how to make it toggle to off, it just toggles on. Here is an image of my code. Any help is appreciated!
Do something more like this. Also you need to set the variable to 1 one when the program starts if you choose to do something like this.