Default gpio for uart2 (ESP32-WROOM-32D)
Posted: Wed Nov 29, 2023 8:33 am
I use ESP32-DevKitC (ESP32-WROOM-32D). I read in the datasheet that IO16 and IO17 are used for uart2.
But when I write this code, uart2 does not output anything.
But if I assign the TX and RX pins myself, then uart2 starts working properly
Why is this happening? Which GPIOs are used by default for uart2?
But when I write this code, uart2 does not output anything.
Code: Select all
uart_set_pin(UART_NUM_2, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE,
UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);
Code: Select all
uart_set_pin(UART_NUM_2, GPIO_NUM_17, GPIO_NUM_16,
UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);