Core2 for AWS IoT EduKit BSP 1.5.1
FT6336U_GetTouch
void FT6336U_GetTouch(uint16_t* x, uint16_t* y, bool* press_down);
void FT6336U_GetTouch(uint16_t *x, uint16_t *y, bool *press_down)
Retrieves the most recent touch data from the FT6336U.
Definition: ft6336u.c:66

Retrieves the most recent touch data from the FT6336U.

Example:

Print the touch coordinates and if the screen is currently being pressed.

uint16_t x, y;
bool press;
FT6336U_GetTouch(&x, &y, &press);
printf( "X: %d, Y: %d, Pressed: %d", x, y, press);
Parameters
[in]xThe X-coordinate of the touch input.
[in]yThe Y-coordinate of the touch input.
[in]press_downThe pressed state of the touch screen.