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/KeyboardStudio/KeyboardStudio.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/LoopbackTerminal/LoopbackTerminal.ino, VGA/MultitaskingCPM/MultitaskingCPM.ino, VGA/NetworkTerminal/NetworkTerminal.ino, VGA/SimpleTerminalOut/SimpleTerminalOut.ino, VGA/SimpleTextTerminalOut/SimpleTextTerminalOut.ino, and VGA/Songs/Songs.ino.

Definition at line 311 of file terminal.cpp.