FabGL
ESP32 Display Controller and Graphics Library
PS2Controller Class Reference

The PS2 device controller class. More...

#include <ps2controller.h>

Static Public Member Functions

static 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. More...
 
static void begin (PS2Preset preset=PS2Preset::KeyboardPort0_MousePort1, KbdMode keyboardMode=KbdMode::CreateVirtualKeysQueue)
 Initializes PS2 device controller using default GPIOs. More...
 
static bool dataAvailable (int PS2Port)
 Determines if one byte has been received from the specified port. More...
 
static void disableRX (int PS2Port)
 Disables inputs from PS/2 port driving the CLK line Low. More...
 
static void enableRX (int PS2Port)
 Enables inputs from PS/2 port releasing CLK line. More...
 
static int getData (int PS2Port, int timeOutMS)
 Gets a scancode from the queue. More...
 
static PS2Controllerinstance ()
 Returns the singleton instance of PS2Controller class. More...
 
static Keyboardkeyboard ()
 Returns the instance of Keyboard object automatically created by PS2Controller. More...
 
static bool lock (int PS2Port, int timeOutMS)
 Gets exclusive access to the specified PS/2 port. More...
 
static Mousemouse ()
 Returns the instance of Mouse object automatically created by PS2Controller. More...
 
static void sendData (uint8_t data, int PS2Port)
 Sends a command to the device. More...
 
static void unlock (int PS2Port)
 Releases port from exclusive access. More...
 

Detailed Description


The documentation for this class was generated from the following files: