FabGL
ESP32 Display Controller and Graphics Library
|
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.
PS2Port | The PS/2 port to use (0 or 1). |
Example:
// 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