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

This seems useful: How to control FSESC(base on VESC) with Arduino ? | – 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

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.