How to use serial1 with PA18 &PA19

how to use serial1(b) pa18&pa19。
thank you!

Hi @oxygenben ,

To use UART pins, you can use the example SoftwareSerial_Basic.ino provided in Ameba Arduino SDK.

Depending on the board being used, you can declare the UART pins that you would like to use as below:

#include <SoftwareSerial.h>

#if defined(BOARD_RTL8722DM)
    //SoftwareSerial mySerial(0, 1); // RX, TX
    SoftwareSerial mySerial(16, 15);


thanks for your quick response!

1 Like