C: https://github.com/Redisage/PAC-ESP32/tree/master/C_examples/RS232

MicroPython: https://github.com/Redisage/PAC-ESP32/tree/master/uPython_examples/RS232

In this example:

  • UART1 (TX1 and RX1 pins) is configured as a receiver

  • UART2 (TX2 and RX2 pins) is configured as a transmitter

Connect ports as in the picture.

In this way there is a possibility to do a test and adapt to working with external devices. On the developer side there is an option to configure serial port parameters.

Default settings:

  • Baudrate: 115200

  • Data bits: 8

  • Parity bits: 0

  • Stop bits: 1

After flashing, open serial port monitor and find out if the demo works properly.