cancel
Showing results for 
Search instead for 
Did you mean: 

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

Study Yahoo
Associate III

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

1 REPLY 1
Alexandre RENOUX
Principal

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