From d8f083c02397c5e88f7a45154066168e10a0bf91 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Tue, 26 Dec 2023 17:28:55 +0800 Subject: [PATCH] update --- test_led.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_led.py b/test_led.py index 9ee4b5b..4eecac1 100644 --- a/test_led.py +++ b/test_led.py @@ -9,7 +9,7 @@ import board from digitalio import DigitalInOut, Direction # 构建LED对象和初始化 while True: - led = DigitalInOut(board.CS1) # 定义引脚编号 + led = DigitalInOut(board.LED) # 定义引脚编号 led.direction = Direction.OUTPUT # IO为输出 led.value = 0 # 输出低电平,熄灭板载LED蓝灯 print("熄灭")