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:
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.