Skip to main content
Kneepatch
Senior
August 7, 2024
Question

TouchGFX Create a Count-down Timer

  • August 7, 2024
  • 1 reply
  • 1773 views

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

ST Employee
August 12, 2024

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,