cancel
Showing results for 
Search instead for 
Did you mean: 

Why emWin projects provided by ST do not use GUI_TOUCH_Exec()?

the
Associate
Posted on July 06, 2014 at 08:57

Hi,

All the sample projects (involving STemWin library) provided by ST do not use the ''GUI_TOUCH_Exec()'' to update the pointer position, only ''GUI_TOUCH_StoreStateEx()'' is used instead.

However, as mentioned in the emWin manual, ''GUI_TOUCH_Exec()'' must be called consistently (every 10ms) for measuring the touch screen and updating the pointer position (through implementing GUI_TOUCH_X_MeasureX() + GUI_TOUCH_X_MeasureY()).

I understand that ST's project has made the measurement separately in BSP_Pointer_Update() but my question is, why the GUI_TOUCH_Exec() is not being used at all? Is it safe to code this way?

Thank you.

#stemwin #touch #emwin
0 REPLIES 0