ESP32 Display Controller and Graphics Library

◆ begin() [2/2]

void begin ( int  PS2Port)

Initializes Mouse without initializing the PS/2 controller.

A reset command (Mouse.reset() method) is automatically sent to the mouse.
This method does not initialize the PS2Controller.

PS2PortThe PS/2 port to use (0 or 1).


// Setup pins GPIO26 for CLK and GPIO27 for DATA on port 0
PS2Controller.begin(GPIO_NUM_26, GPIO_NUM_27); // clk, dat
Mouse.begin(0); // port 0

Definition at line 71 of file mouse.cpp.