2020-10-25 10:09 PM
Hi everyone,
I am a student and I am working on a project involving an STM32f429ZI and a 7inch touch display.
It's the first time I work with displays, I am trying to create a GUI using touchgfx.
I have been working on it for a week now and so far I managed to :
The GUI is correctly displayed and work well on the screen, and the button animation is shown when I click on it, the only problem is that the button callback function isn't called every time I press on it.
(I mean, I have to press the button on the screen very fast several times until the callback function is finally called. When I use the debugger it works fine though)
Thank you very much for your time
2020-10-26 05:28 AM
First of all, sounds like you did a good job getting everything almost-working!
The UI responds according to touch input - Did you check your touch controller if you're always getting the right coordinates? And if touch is detected?
/Martin
2020-10-26 08:15 AM
Thank you.
Well, as I said, the touch seems to be detected because we can see the button being pressed and released every time I click.
(And when I start the debugger, all works fine, the coordinates are correct and the callback is called. But when the application is normally running without the debugger, it ignores the callback)
You can watch a demo here : https://drive.google.com/file/d/1lfvaBoGG-RwjKrS1Rngw5LAUuasnZ3MS/view?usp=sharing
2020-10-26 03:27 PM
Hello,
I tried to look every where in my code and I didn't found any thing that could explain that behavior, so I decided to create a new clean project and guess what? Every thing works fine. I don't know what detail I missed in my previous code, I wonder what went wrong, but never mind.
Thank you for your help once again :)
2020-10-27 06:31 AM
I missed the part where you said that the button was always being pressed, indicating that touch coordinates are correct. Strange behavior - Not something i can immediately pin point without actually trying the project, but since you already solved it :) Great