Serial1 on BPI-Leaf-S3

zanivanov
Posts: 1
Joined: Fri Apr 19, 2024 5:35 pm

Serial1 on BPI-Leaf-S3

Postby zanivanov » Fri Apr 19, 2024 5:36 pm

I have a problem with Serial1, I am trying to get it working on 18(RX1) and 17(TX1) and unfortunately I am not able to get it working. Can you advise me what to do with it?

Code: Select all

#include <HardwareSerial.h> HardwareSerial SerialPort(1); // use UART1 SerialPort.begin(115200, SERIAL_8N1, 18, 17);

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: Serial1 on BPI-Leaf-S3

Postby lbernstone » Sat Apr 20, 2024 3:11 am

Any reason you can't just use Serial1? Example code
Note that the RX on the esp needs to connect to the TX on the serial device.

Who is online

Users browsing this forum: No registered users and 57 guests