I am following this page of documentation for setting communication pins:
https://docs.espressif.com/projects/esp ... ation-pins
why it is like this:
Code: Select all
ESP_ERROR_CHECK(uart_set_pin(UART_NUM_2, 4, 5, 18, 19));
Code: Select all
ESP_ERROR_CHECK(uart_set_pin(UART_NUM_2, 17, 16, 18, 19));
Since we are defining the pin numbers of the second uart, it make sense to use the pins that are allocated to uart_2.
Am I missing something?
Thanks