Code for button switch to power motor

hi, anywhere I can find code to control a VESC to power a skateboard motor please?
so I want
short press=50% power
long press=100% power
quick press=kill power
arduino wiring
thanks!

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