cancel
Showing results for 
Search instead for 
Did you mean: 

setExpandedStateTimeout wrong delay

AAlis.23
Associate III

When changed the setExpandedStateTimeout of the slide control the delay is not as expected, when placina a value of 4000 instead of 4 seconds I'm getting a very long delay and when placing 100 Im getting around 4 seconds

4 REPLIES 4
Osman SOYKURT
ST Employee

Hello AAlis.23,

Remember that this function takes a value in ticks as described in the API, it's not in millisecond.

The tick value depends on your hardware capabilities&configuration and your application of course (if it's heavy, if you have animations, how many images do you render, etc...)

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX
AAlis.23
Associate III

oh... I thought ticks are in ms like other OS. Ok.. Is there any function to check the ratio ticks per second?

Hello,

No there's no function because as I said it depends on the real time running. By default, 1 tick should be close to 16 ms but if you run heavy animations, you can "miss" ticks because of calculations by your MCU. I invite you to read this article for complete description of performance of your embedded graphical user interface.

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX
AAlis.23
Associate III

Thanks!