Skip to main content
AAlis.23
Associate III
Feb 22, 2023 9:58 AM UTC
Question

setExpandedStateTimeout wrong delay

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

This topic has been closed for replies.

4 replies

Osman SOYKURT
ST Technical Moderator
Feb 23, 2023 2:36 PM UTC

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

ST Software Developer | TouchGFX
AAlis.23
AAlis.23Author
Associate III
Feb 23, 2023 6:11 PM UTC

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

Osman SOYKURT
ST Technical Moderator
Feb 24, 2023 9:10 AM UTC

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

ST Software Developer | TouchGFX
AAlis.23
AAlis.23Author
Associate III
Feb 24, 2023 4:04 PM UTC

Thanks!