Hi,
According to manual, by calling GUITDRV_ADS7846_Exec() periodically, touch XY values would be stored via GUI_TOUCH_StoreStateEx().
I manage to retrieve correct XY values from the ADS7846 (verified using GUITDRV_ADS7846_GetLastVal())
However, there is no sign of the state is being stored (GUI_TOUCH_GetState() always return zero).
Is there a mistake I made somewhere? any solution?
Someone in the forum has the similar issue (ADS7846 example).
Display All
According to manual, by calling GUITDRV_ADS7846_Exec() periodically, touch XY values would be stored via GUI_TOUCH_StoreStateEx().
I manage to retrieve correct XY values from the ADS7846 (verified using GUITDRV_ADS7846_GetLastVal())
However, there is no sign of the state is being stored (GUI_TOUCH_GetState() always return zero).
Is there a mistake I made somewhere? any solution?
Someone in the forum has the similar issue (ADS7846 example).
C Source Code
- cfgADS7846.pfSendCmd = TP_ADS7846_vWriteByte;
- cfgADS7846.pfGetResult = TP_ADS7846_xReadWord;
- cfgADS7846.pfGetBusy = TP_ADS7846_xGetBUSY;
- cfgADS7846.pfSetCS = TP_ADS7846_vSetCS;
- cfgADS7846.pfGetPENIRQ = TP_ADS7846_xGetPENIRQ;
- cfgADS7846.xLog0 = 0;
- cfgADS7846.xLog1 = (320 - 1);
- cfgADS7846.xPhys0 = 0;
- cfgADS7846.xPhys1 = 4095;
- cfgADS7846.yLog0 = 0;
- cfgADS7846.yLog1 = (240 - 1);
- cfgADS7846.yPhys0 = 0;
- cfgADS7846.yPhys1 = 4095;
- GUITDRV_ADS7846_Config( &cfgADS7846 );