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);