update start light

This commit is contained in:
IrvingGao committed 2024-05-27 23:47:05 +08:00
1 parent 70ba63b7e8
commit 67d156d3f4
2 files changed
+8 -13

No files matched your search

-13
View File
@@ -27,17 +27,6 @@ from takway.clients.client_utils import BaseWebSocketClient
from takway.audio_utils import AudioPlayer
def start_status_light(hardware, board):
print(f"start status light running.")
if board == 'orangepi':
for i in range(2):
hardware.set_led_on("green")
time.sleep(0.5)
hardware.set_led_off("green")
time.sleep(0.5)
print(f"led {i} on")
class WebSocketClinet:
def __init__(self,
board,
@@ -152,8 +141,6 @@ class WebSocketClinet:
last_short_power_status = False
board = self.board
start_status_light(recorder.hardware, board)
while True:
# 开关按键被按下
if recorder.hardware.long_power_status: