是德科技
直播中

李雨充

7年用户 210经验值
私信 关注
[问答]

代码不断执行某些功能

嗨,这看起来很琐碎,但我找不到解决方案。
我的代码不断执行某些功能(读取温度,湿度)。
我想允许用户输入运行其他代码(设置温度设定值)。
我的编写代码工作正常,但我找不到将在用户按下时执行它的瞬时按钮。
切换按钮陷入状态循环(每个循环都会弹出相同的输入框,因为它仍然是“ON”。)我只是在寻找一个瞬间样式按钮,单击 - 执行。
我很困惑,在VEE中很难找到它。

以上来自于谷歌翻译


     以下为原文

  Hi,

This seems so trivial but I can't find a solution.  

My code continually executes certain functions (read temp, humidity). I want to allow user input to run other code (set temperature setpoint).  

My writing code works fine, but I can't find a momentary button that will execute it on a user press. The toggle buttons get caught in a state loop (each cycle the same input box will pop up, because it is still "ON".)

I'm simply looking for a momentary style button, click - execute. I'm baffled it is so hard to find this in VEE.  

回帖(4)

李麒

2019-7-9 15:58:32
嗨,也许像附件?
有时也可以使用OK按钮,具体取决于您的程序结构和流程。
希望这会有所帮助, - mk

以上来自于谷歌翻译


     以下为原文

  Hi,

Maybe something like attachment? Sometimes OK button can be used too, depending on your program structure and flow.

Hope this helps,
- mk

附件

举报

李雨充

2019-7-9 16:07:37
没关系我只是注意到拨动开关上的复位端子......

以上来自于谷歌翻译


     以下为原文

  Never mind I just noticed the reset terminal on a toggle switch...
举报

李雨充

2019-7-9 16:15:19
没关系我只是注意到拨动开关上的复位端子......

以上来自于谷歌翻译


     以下为原文

  Never mind I just noticed the reset terminal on a toggle switch...
举报

李麒

2019-7-9 16:25:27
引用: uweuewyfydsf 发表于 2019-7-9 16:23
没关系我只是注意到拨动开关上的复位端子......

以上来自于谷歌翻译

我的例子是使用重置:)

以上来自于谷歌翻译


     以下为原文

  My example is using the reset too :)
举报

更多回帖

发帖
×
20
完善资料,
赚取积分