FabGL
ESP32 Display Controller and Graphics Library

◆ lock()

bool lock ( int  PS2Port,
int  timeOutMS 
)
static

Gets exclusive access to the specified PS/2 port.

Parameters
PS2PortPS2 port number (0 = port 0, 1 = port1).
timeOutMSTimeout in milliseconds to wait before fail.
Returns
True if the device has been locked.

Definition at line 1332 of file ps2controller.cpp.