Core2 for AWS IoT EduKit BSP 1.5.1
FT6336U_Init
void FT6336U_Init();
void FT6336U_Init()
Initializes the FT6336U over I2C.
Definition: ft6336u.c:23

Initializes the FT6336U over I2C.

Note
The Core2ForAWS_Init() calls this function when the hardware feature is enabled.
It creates a FreeRTOS task with the task name FT6336Task and installs an ISR on the interrupt pin FT6336U_INTR_PIN.

The most recent button press state is stored within the library and can be queried using the functions provided by this library.

The FreeRTOS task remains suspended and only resumes when the screen is pressed (which is informed by the FT6336U using the interrupt on the FT6336U_INTR_PIN). If multiple press events are stashed by the hardware, the FreeRTOS task keeps retrieving them one by one at an interval of 20 ticks. Once all the events are retrieved, the task suspends itself.