UIFlow infinite loop and code reload



  • 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/



  • 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.



  • 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