1 Star 0 Fork 0

lagrange/air-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
air.py 715 Bytes
一键复制 编辑 原始数据 按行查看 历史
lagrange 提交于 2021-05-21 21:33 +08:00 . first commit
import controller.LCD
from controller.info import state_string, changeMode, changeTarTemp,closeSystem
from controller.ws import create_connection
from controller.LCD import Command
controller.LCD.set_color(7)
#begin
controller.LCD.clear()
ON = False
print("start")
while 1:
controller.LCD.set_message(state_string())
f = controller.LCD.get_input()
if f == Command.UP and ON:
changeTarTemp(1)
elif f == Command.DOWN and ON:
changeTarTemp(-1)
elif f == Command.ON and (not ON):
create_connection()
ON = True
elif f == Command.MODE and ON:
changeMode()
elif f == Command.OFF and ON:
ON = False
closeSystem()
pass
pass
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lagrangetay/air-python.git
[email protected]:lagrangetay/air-python.git
lagrangetay
air-python
air-python
master

搜索帮助