2020-11-05 03:47 AM
Hello!
How to force the toggle button to TRUE->FALSE and how to change the scene after 60 seconds!
1) I am curious about how to change the toggle button from the current state to false.
2) I am curious about how to go from scene 1 to scene 2 after 60.
Is it possible to edit in TOUCHGFX Designer?
Thank you.!
2020-11-08 09:33 PM
Hello,
1) Yes you can, simply call forceState(false); (API reference : https://support.touchgfx.com/docs/api/classes/classtouchgfx_1_1_toggle_button/)
2) First you need to create an interaction to go from Screen 1 to Screen 2. For this have a look at this post : https://community.st.com/s/question/0D53W00000JNyqASAT/screen-change-from-code
Second, you need to implement handleTickEvent() and call the changeScreen function after x ticks.
When your question is answered, please close this topic by choosing Select as Best.
/Alexandre