From 2e33b491ace8e98c06589e905d9121ca039e46e3 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Tue, 26 Dec 2023 17:15:04 +0800 Subject: [PATCH] update --- test_led.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_led.py b/test_led.py index 3a71e47..e0f6193 100644 --- a/test_led.py +++ b/test_led.py @@ -11,8 +11,8 @@ from digitalio import DigitalInOut, Direction while True: led = DigitalInOut(board.LED) # 定义引脚编号 led.direction = Direction.OUTPUT # IO为输出 - print("熄灭") led.value = 0 # 输出低电平,熄灭板载LED蓝灯 - print("点亮") + print("熄灭") time.sleep(20) led.value = 1 # 输出高电平,点亮板载LED蓝灯 + print("点亮")