cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Create a Count-down Timer

Kneepatch
Senior

How do you create a graphical count-down timer in TouchGFX?

Are there any example custom widgets that implement a count-down timer that I am not already aware of?

It seems that the Model::tick() function's cycle time varies based on the LCD, so I am not sure that I can/want to rely on this for accurate timing.

I want to create something that is comparable to the accuracy/quality of the clock widget provided with TouchGFX.

1 REPLY 1
LouisB
ST Employee

Hello @Kneepatch,

 

TouchGFX is aiming for 60fps, so 60 ticks are equal to 1 second. You have an example you can draw inspiration from : Tutorial 3: Applications with Multiple Screens | TouchGFX Documentation.

I hope it helps.
Best regards,

Louis BOUDO
ST Software Developer | TouchGFX