使用UiFlow2进行编程时,如何从代码编程逆向到图形编程
-
- 首先我使用图形页面进行编程,例如各种硬件初始化;
- 然后进行了一些简单的代码操作
- 接下来切换到microPython模式进行代码编程,
- 程序正常编译,通过并运行
- 再接下来,我回到图形页面进行一些组件添加工作,例如按钮事件(因为我不知道这个事件在代码里面该怎么写)
- 然后出现问题了, 写的代码被图形页面生成的代码完全覆盖掉了
请教下大家,如何让我写的代码逆向回图形页面保持不变?
-
@tt1296116093 这是正常现象,因为您的额外代码不以块的形式存在。
您需要将额外代码放在“执行代码”块中,以使其不会消失。
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login