
Re: Can't get servo to work with two different buttons
Actually, the code posted above probably won't work (assuming that it's within a scan sequence) because we continually scan the joystick, so the code would actually activate more than once, and thus the result would be indeterminate.
In order to correctly handle a toggle, you have to make a one-shot notifier as well...
I took the code and added in the "b3Pressed" boolean variable to handle that one-shot
Try that (or something similar). The biggest problem with the button pushes on this system is that the bluetooth is slower than the actual scan speed of the controller. To that end, you can't push the button fast enough to make it only scan through once.