Hi Initializing the TX_SDA pin of the VESC with
palSetPadMode(HW_UART_TX_PORT, HW_UART_TX_PIN, PAL_MODE_INPUT_PULLDOWN);
and checking it at runtime with:
palReadPad(HW_UART_TX_PORT, HW_UART_TX_PIN)
(as per http://vedder.se/2015/08/vesc-writing-custom-applications/)
What is the wiring for a push button and a resistor that I need to make?
I cannot make it work following the example (I can only read the potentiomenter value)…the push button reading is totally inconsistent/random.
Much appreciated!