![]() |
Core2 for AWS IoT EduKit BSP 1.5.1
|
Initializes the FT6336U over I2C.
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.