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

    使用UiFlow2进行编程时,如何从代码编程逆向到图形编程

    提问专区
    2
    2
    245
    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.
    • T
      tt1296116093
      last edited by

      • 首先我使用图形页面进行编程,例如各种硬件初始化;
      • 然后进行了一些简单的代码操作
      • 接下来切换到microPython模式进行代码编程,
      • 程序正常编译,通过并运行
      • 再接下来,我回到图形页面进行一些组件添加工作,例如按钮事件(因为我不知道这个事件在代码里面该怎么写)
      • 然后出现问题了, 写的代码被图形页面生成的代码完全覆盖掉了

      请教下大家,如何让我写的代码逆向回图形页面保持不变?

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

        @tt1296116093 这是正常现象,因为您的额外代码不以块的形式存在。
        您需要将额外代码放在“执行代码”块中,以使其不会消失。

        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 0
        • First post
          Last post