I'm using the VESC6 in my electric scooter. I have the throttle input going into ADC1. I want to use a push button switch on the handlebars to swap the motor torque direction ie. to activate regen mode. Essentially the throttle will become a variable regen brake whilst the switch is pushed.
My question is, what input do I connect the switch to? Is there a pin with a pull up resistor so the switch can just pull the input to ground? It'd be nice to avoid having to do all that myself.
Thanks in advance,