Switching the screen by Hardware button.
How to switch the screens in touchgfx using hardware button .
I have tried it by creating queue but its not working. Can anyone share the reference code for the same.
Thank You
How to switch the screens in touchgfx using hardware button .
I have tried it by creating queue but its not working. Can anyone share the reference code for the same.
Thank You
Hello,
To propagate the hardware button event to your UI, please refer to : https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/backend-communication as well as https://support.touchgfx.com/docs/development/board-bring-up/example-gpio#touchgfx-hal-development
Also you can look at the Application Template for L496G-DISCO available in TouchGFX Designer that implements a buttonController called KeySampler.
An easy way to do the transition after you received correctly the button event, is to create a dummy button outside the screen in the Designer and create a screen transition when this button is clicked. Then just copy paste the generated code line that looks like goToScreenxxx() in your handleKeyEvent() function.
Also please look at older posts before posting this kind of question. I'm pretty sure it was answered several times before.
/Alexandre
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.