34 #include "freertos/FreeRTOS.h" 35 #include "freertos/task.h" 64 void begin(gpio_num_t port0_clkGPIO, gpio_num_t port0_datGPIO, gpio_num_t port1_clkGPIO = GPIO_NUM_39, gpio_num_t port1_datGPIO = GPIO_NUM_39);
75 bool waitData(
int timeOutMS,
int PS2Port);
92 void sendData(uint8_t data,
int PS2Port);
108 static void IRAM_ATTR rtc_isr(
void * arg);
114 volatile TaskHandle_t m_TXWaitTask[2];
117 volatile TaskHandle_t m_RXWaitTask[2];
void sendData(uint8_t data, int PS2Port)
Sends a command to the device.
Definition: ps2controller.cpp:950
Definition: canvas.cpp:47
The PS2 device controller class.
Definition: ps2controller.h:50
void injectInRXBuffer(int value, int PS2Port)
Injects a byte into the RX buffer.
Definition: ps2controller.cpp:928
This file contains FabGL library configuration settings, like number of supported colors...
void begin(gpio_num_t port0_clkGPIO, gpio_num_t port0_datGPIO, gpio_num_t port1_clkGPIO=GPIO_NUM_39, gpio_num_t port1_datGPIO=GPIO_NUM_39)
Initializes PS2 device controller.
Definition: ps2controller.cpp:825
int getData(int PS2Port)
Gets a scancode from the queue.
Definition: ps2controller.cpp:877
int dataAvailable(int PS2Port)
Gets the number of scancodes available in the controller buffer.
Definition: ps2controller.cpp:862