update start light

This commit is contained in:
IrvingGao committed 2024-05-27 23:44:42 +08:00
1 parent 88843ff4ad
commit 70ba63b7e8
1 file changed
+2
@@ -28,12 +28,14 @@ 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: