|
|
8 лет назад | |
|---|---|---|
| .. | ||
| main | 8 лет назад | |
| Makefile | 8 лет назад | |
| README.md | 8 лет назад | |
This is an example which echoes any data it receives on UART1 back to the sender.
| ESP32 Interface | #define | ESP32 Pin | External UART Pin | | --- | --- | --- | --- | | Transmit Data (TxD) | ECHO_TEST_TXD | GPIO4 | RxD | | Receive Data (RxD) | ECHO_TEST_RXD | GPIO5 | TxD | | Ground | n/a | GND | GND |
This is an optional check to verify if the hardware flow control works. To set it up you need an external serial interface that has RTS and CTS signals.
| ESP32 Interface | #define | ESP32 Pin | External UART Pin | | --- | --- | --- | --- | | Request to Send (RTS) | ECHO_TEST_RTS | GPIO18 | CTS | | Clear to Send (CTS) | ECHO_TEST_CTS | GPIO19 | RTS |
UART_PIN_NO_CHANGE macros with the above pin numbers.flow_ctrl = UART_HW_FLOWCTRL_CTS_RTS and adding .rx_flow_ctrl_thresh = 122See the README.md file in the upper level 'examples' directory for more information about examples.