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("点亮")