I want to changes screens with a button. I have set the button event to trigger on Released. This works in the simulator, but when I up load to the screen the event is effectively triggered on pressed. This results in constant switching between screens if the button is held as there is another button in the same place on the second screen to switch back to the first screen.
I would upload a video, but as a new user I can’t.
I am using a Waveshare ESP32-P4-Module-DEV-KIT-B. This has a 7 inch screen.
I based the project on Arduino with TFT_eSPI. Is this the right way to start? This Dev Kit uses MIPI DSI interface.
Hi Richard, thanks for the suggestion. No that made no difference.
I have read about some similar problems being caused by basing the project on TFT_eSPI and the display requiring something different, but I’m not good enough work that out myself. I will ask Waveshare to see if they know.
Once I ran into a cap-touch driver that was reporting presses as down+up. It had never been used with scrolling, so it hadn’t been a problem until then. Could yours be doing something similar?
You could check by printing the button events(PRESSED/RELEASED/CLICKED) on that screen, and then holding the button down - if you get RELEASED/CLICKED with the touchscreen held, I would assume it’s a touch-screen issue.