ESP32 上哪些引脚可用于 UART?
ESP32 可以将任何引脚用于 UART。虽然使用某些特殊引脚有极小的性能优势,但这在实践中并不重要。
serial2_example.cpp
// 使用 GPIO2 和 GPIO4 作为 Serial2
Serial2.begin(115200, SERIAL_8N1,
2 /* RX 引脚 */,
4 /* TX 引脚 */);Check out similar posts by category:
Allgemein
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow