FabGL
ESP32 Display Controller and Graphics Library

◆ lock()

bool fabgl::PS2Device::lock ( int  timeOutMS)

Gets exclusive access to the device.

Parameters
timeOutMSTimeout in milliseconds to wait before fail.
Returns
True if the device has been locked.