FabGL
ESP32 Display Controller and Graphics Library

◆ begin() [1/2]

void begin ( gpio_num_t  port0_clkGPIO,
gpio_num_t  port0_datGPIO,
gpio_num_t  port1_clkGPIO = GPIO_UNUSED,
gpio_num_t  port1_datGPIO = GPIO_UNUSED 
)

Initializes PS2 device controller.

Initializes the PS2 controller assigning GPIOs to DAT and CLK lines.

Because PS/2 ports are handled by the ULP processor, just few GPIO ports are actually usable. They are: GPIO_NUM_2, GPIO_NUM_4, GPIO_NUM_12 (with some limitations), GPIO_NUM_13, GPIO_NUM_14, GPIO_NUM_15, GPIO_NUM_25, GPIO_NUM_26, GPIO_NUM_27, GPIO_NUM_32 and GPIO_NUM_33.

Parameters
port0_clkGPIOThe GPIO number of Clock line for PS/2 port 0.
port0_datGPIOThe GPIO number of Data line for PS/2 port 0.
port1_clkGPIOThe GPIO number of Clock line for PS/2 port 1 (GPIO_UNUSED to disable).
port1_datGPIOThe GPIO number of Data line for PS/2 port 1 (GPIO_UNUSED to disable).
Examples:
Others/KeyboardStudio/KeyboardStudio.ino, Others/MouseStudio/MouseStudio.ino, SSD1306_OLED/128x64/NetworkTerminal/NetworkTerminal.ino, SSD1306_OLED/128x64/RTClock/RTClock.ino, SSD1306_OLED/128x64/UI/UI.ino, ST7789_TFT/240x240/FileBrowser/FileBrowser.ino, VGA/Altair8800/Altair8800.ino, VGA/AnsiTerminal/AnsiTerminal.ino, VGA/Audio/Audio.ino, VGA/ClassicRacer/ClassicRacer.ino, VGA/DirectVGA_ElMuro/DirectVGA_ElMuro.ino, VGA/FileBrowser/FileBrowser.ino, VGA/GraphicalUserInterface/GraphicalUserInterface.ino, VGA/HardwareTest/HardwareTest.ino, VGA/LoopbackTerminal/LoopbackTerminal.ino, VGA/MouseOnScreen/MouseOnScreen.ino, VGA/MultitaskingCPM/MultitaskingCPM.ino, VGA/NetworkTerminal/NetworkTerminal.ino, VGA/SpaceInvaders/SpaceInvaders.ino, and VGA/VIC20/VIC20.ino.

Definition at line 863 of file ps2controller.cpp.