代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。