Code for button switch to power motor

This seems useful: How to control FSESC(base on VESC) with Arduino ? | Flipsky.net – FLIPSKY

Since you also want a button, look at the button2 library which will help you detect a button press as well as how long it has been pressed

1 Like