I am confused as to how I could program my robots flywheel to increase/decrease speed at the push of a button. As of now I would like to have 2 speeds and a toggle button to switch between them. I have a stationary lift and a power expander the is just for the flywheel.
As mentioned in the linked thread, (but not explained here)
1 the code posted here doesn’t work, (also need to detect change of button state, not just ‘pressed’)
2 Rather than toggle between two speeds with one button,
its easier (and better user interface) to use a different button for each speed.