Y13 is Y11
This commit is contained in:
@@ -57,13 +57,13 @@ def main():
|
||||
time.sleep(0.1)
|
||||
|
||||
if time.time() - last_valve_time > valve_off_time:
|
||||
io_module.control_valve(13, True)
|
||||
io_module.control_valve(11, True)
|
||||
time.sleep(valve_on_time)
|
||||
io_module.control_valve(13, False)
|
||||
io_module.control_valve(11, False)
|
||||
last_valve_time = time.time()
|
||||
except KeyboardInterrupt:
|
||||
print("程序收到中断信号,正在退出...")
|
||||
io_module.control_valve(13, False)
|
||||
io_module.control_valve(11, False)
|
||||
io_module.stop()
|
||||
hv_service.stop()
|
||||
mqtt_client.stop()
|
||||
|
||||
Reference in New Issue
Block a user