2025-01-08 07:47 AM - last edited on 2025-01-08 08:55 AM by SofLit
Hi,
I have been trying to implement the functionality to change the currently active screen on TouchGFX using a hardware button with no luck so far.
I'm using an STM32H743zit6.
Here are the resources I've looked at but haven't managed to get working:
https://www.youtube.com/watch?v=ufvJ5bcesL8
https://www.youtube.com/watch?v=QgEDSjvGAlk
https://support.touchgfx.com/docs/development/scenarios/example-gpio
https://support.touchgfx.com/docs/development/board-bring-up/how-to/10-physical-buttons
https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/hardware-button/td-p/640357
Any help would be greatly appreciated,
Thanks.
2025-01-08 08:14 AM
@Josh_W020 wrote:Here are the resources I've looked at
What we really need to see is what you've done.
@Josh_W020 wrote:I have been trying to implement the functionality to change the currently active screen on TouchGFX using a hardware button .
Which part are you stuck on:
2025-01-08 08:52 AM
Hello,
I think you need to use application().gotoScreen2CoverTransitionxxx() API from the button callback.
See for example this thread.
2025-01-08 11:01 AM - edited 2025-01-08 11:03 AM
Ohh boy zero info... Try this
run simultor and press A key on keyboard Work transition ?
Interaction1 in my example is add on main screen (FYI your screen marked to start) and transition go to Screen1...
When this works ok you can step to physical button code ...