Skip to main content
Study Yahoo
Associate II
November 5, 2020
Question

How to force the toggle button to TRUE->FALSE and how to change the scene after 60 seconds!

  • November 5, 2020
  • 1 reply
  • 938 views

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.!

This topic has been closed for replies.

1 reply

Alexandre RENOUX
Visitor II
November 9, 2020

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