🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Wait instruction in a loop

    UIFlow
    2
    3
    4.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      darul75
      last edited by darul75

      Hello,

      I am aiming at updating a label every seconds but the rendering is always made at the very end of the loop.

      Using the https://m5stack.github.io/UIFlow_doc/en/en/Start_programming/Wait.html I was hoping this type of loop would to it.

      Is there anything in particular to take into account?

      A specific button calls that function, the rest is pretty simple a label being displayed on the middle of the screen.

      But instead of seing, 1, 2, 3,....10

      Only 10 is displayed at when loop has completed.

      0_1636395033501_Screenshot 2021-11-08 at 19.09.11.png

      1 Reply Last reply Reply Quote 1
      • D
        darul75
        last edited by darul75

        answering myself but in case it can help others this type of update has to be made as part of a loop screen instruction as in yellow above otherwise it is not working

        1 Reply Last reply Reply Quote 1
        • S
          southsystems
          last edited by

          I think I have the same problem, still trying to figure it out. I'm trying to gradually move an image in a loop by setting x / y and waiting, but the screen doesn't seem to update. Looking at your example I'm not sure how to apply a similar solution?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post