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

    What does m5base.app_start() do?

    UIFlow
    2
    3
    4.7k
    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.
    • J
      jhfoo
      last edited by

      I learnt a lot very quickly using uiflow, and am looking to move into their alternate custom-app mode (super cool feature btw!).

      Analyzing stock boot.py:

      1. m5base.app_start(0) is called in app mode, and app_start(2) in flow mode. What does this do exactly, and should I care?
      2. In app mode, what is the purpose behind copying the selected app into main.py? This feels unnecessary as I need to manually select the app again with the physical buttons every time I upload my code.
      1 Reply Last reply Reply Quote 0
      • R
        robalstona
        last edited by

        if you select and run app in app selector its file was saved as main.py. And when you reset device or shutdown and power up next time or run in app mode your prewiously selected app was running (main.py).

        J 1 Reply Last reply Reply Quote 0
        • J
          jhfoo @robalstona
          last edited by

          @robalstona Yes I get that. But WHY? As I mentioned earlier, this makes testing code uploads a pain.

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