ESP32 Display Controller and Graphics Library

◆ connectSerialPort() [1/2]

void connectSerialPort ( HardwareSerial &  serialPort,
bool  autoXONXOFF = true 

Connects a remote host using the specified serial port.

When serial port is set, the typed keys on PS/2 keyboard are encoded as ANSI/VT100 codes and then sent to the specified serial port.
Also replies to terminal queries like terminal identification, cursor position, etc.. will be sent to the serial port.
Call Terminal.pollSerialPort() to send codes from serial port to the display.

This method requires continous polling of the serial port and is very inefficient. Use the second overload to directly handle serial port using interrupts.

serialPortThe serial port to use.
autoXONXOFFIf true uses software flow control (XON/XOFF).



Definition at line 441 of file terminal.cpp.