FabGL
ESP32 VGA Controller and Graphics Library

◆ connectSerialPort()

void fabgl::TerminalClass::connectSerialPort ( HardwareSerial &  serialPort,
bool  autoXONXOFF = true 
)

Connect a remove 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 TerminalClass.pollSerialPort() to send codes from serial port to the display.

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

Example:

  Terminal.begin();
  Terminal.connectSerialPort(Serial);