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

    UIFlow infinite loop and code reload

    UIFlow
    3
    3
    1.9k
    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.
    • B
      b0rscht
      last edited by

      Hello,

      After creating an infinite loop in UIFlow, and executing it. I am unable to then execute new code subsequently. UIFlow says 'Execute code successfully', but state of the device does not change. The only solution I found was to power-cycle the device. Are there any software workarounds?

      0_1702395350056_fb0001a3-74e1-4d3c-897c-86f14f06e9d9-image.png

      HW: Atom Lite.
      SW: v1.12.9
      WEB: 2023.12.8 https://flow.m5stack.com/

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        You need to add a while loop which is the yellow main program loop and code needs to be placed in that
        You should be using a button loop for this.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 1
        • P
          pandian.nano
          last edited by

          Hi @b0rscht ,
          You should add this loop (yellow color) because it has included a 2ms delay or you use to while loop inside add the 2ms delay

          0_1702517364555_513b239c-addb-4a09-b0ae-ec00dce2a2bc-image.png
          0_1702517690978_ba574b3e-88f1-4a38-9f15-096c2383c338-image.png

          (OR)

          0_1702517302493_ac6155b5-dd37-48b7-93fe-99815c7185c3-image.png

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