lemmy Posted March 22 Report Share Posted March 22 uGFX 2.9 STM32F746G Discovery ChibiOS Running the button demo... Hello, Touch is detected and arrives in gwidgetEvent() but the flags are not matched to run the MouseUp() function. h->flags = 0x011f00 Any suggestions? Thanks Lemmy Link to comment Share on other sites More sharing options...
lemmy Posted March 23 Author Report Share Posted March 23 Found the problem(s) FT5336 x and y values weren't reading correctly ft5336ReadXYZ() needs to return TRUE even if there is no new touch 👍 Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted March 23 Report Share Posted March 23 Hello & Welcome to the µGFX community! Glad to hear that you got it working! I'm a bit confused tho. ft5336ReadXYZ() seems to already return gTrue. Did you modify the driver or am I missing something? Link to comment Share on other sites More sharing options...
lemmy Posted March 24 Author Report Share Posted March 24 Hi Joel, As I rooted around for a solution I wondered if ft5336ReadXYZ() should return gTrue even if there was no touch detected. So I changed it 🙃 Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted March 28 Report Share Posted March 28 Thank you for getting back to us on that If we look at the current implementation, that is already the case, right? See here: https://git.ugfx.io/uGFX/ugfx/src/branch/master/drivers/ginput/touch/FT5336/gmouse_lld_FT5336.c#L59 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now