This commit is contained in:
xyj 2023-12-26 17:13:57 +08:00
parent 7fcc7d362a
commit f3b2452d03
1 changed files with 1 additions and 1 deletions

View File

@ -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为输出
print("熄灭")
led.value = 0 # 输出低电平熄灭板载LED蓝灯