I’m trying to use my DOIT Esp32 Devkit v1 to manage a GPS module and a Nextion display. Therefore, I need two serial ports at baud rate = 9600. My code so far:
gps = streams.serial(SERIAL0,set_default=False,baud=9600)
display = streams.serial(SERIAL1,set_default=False,baud=9600)
I already tried to use print(“Hello World”,stream=gps).
I only can read the output if my terminal was configured with 115200. With 9600, I get wrong data (like “þÖÝ”).
How can I change the baud rate? What I doing wrong? Is this related to serial-USB chip on my board?