FabGL
ESP32 Display Controller and Graphics Library

◆ begin()

bool begin ( BaseDisplayController displayController,
int  maxColumns = -1,
int  maxRows = -1,
Keyboard keyboard = nullptr 
)

Initializes the terminal.

Applications should call this method before any other method call and after resolution has been set.

Parameters
displayControllerThe output display controller
maxColumnsMaximum number of columns (-1 = depends by the display horizontal resolution)
maxRowsMaximum number of rows (-1 = depends by the display vertical resolution)
keyboardKeyboard device. nullptr = gets from PS2Controller
Returns
False on fail to allocate required memory
Examples
Others/KeyboardScanCodes/KeyboardScanCodes.ino, Others/KeyboardVirtualKeys/KeyboardVirtualKeys.ino, SSD1306_OLED/128x32/SimpleTerminalOut/SimpleTerminalOut.ino, SSD1306_OLED/128x64/NetworkTerminal/NetworkTerminal.ino, SSD1306_OLED/128x64/RTClock/RTClock.ino, SSD1306_OLED/128x64/SimpleTerminalOut/SimpleTerminalOut.ino, ST7789_TFT/240x240/SimpleTerminalOut/SimpleTerminalOut.ino, VGA/Altair8800/Altair8800.ino, VGA/AnsiTerminal/AnsiTerminal.ino, VGA/LoopbackTerminal/LoopbackTerminal.ino, VGA/MultitaskingCPM/MultitaskingCPM.ino, VGA/NetworkTerminal/NetworkTerminal.ino, VGA/SimpleTerminalOut/SimpleTerminalOut.ino, VGA/SimpleTextTerminalOut/SimpleTextTerminalOut.ino, VGA/Songs/Songs.ino, and VGA/SoundChipSimulator/SoundChipSimulator.ino.

Definition at line 323 of file terminal.cpp.