2022-04-26 08:30 AM
2022-04-26 09:21 AM
Dont mix sw GUI library with hw control. I2C is simple protocol , you need use it in C or C++ .
Most simple is in main while pool touch IRQ and read store to struct global memory.
And add handle struct
bool STM32TouchController::sampleTouch(int32_t& x, int32_t& y)
{
/**
* By default sampleTouch returns false,
* return true if a touch has been detected, otherwise false.
*
* Coordinates are passed to the caller by reference by x and y.
*
* This function is called by the TouchGFX framework.
* By default sampleTouch is called every tick, this can be adjusted by HAL::setTouchSampleRate(int8_t);
*
*/
return false;
}
/* USER CODE END STM32TouchController */
2022-04-26 10:04 AM
I can put code other than MX_TouchGFX_Process in the main.c while loop?
I presumed MX_TouchGFX_Process never exited.