update
This commit is contained in:
parent
173e26b118
commit
64a18f9ebe
|
@ -9,7 +9,7 @@ import board
|
||||||
from digitalio import DigitalInOut, Direction
|
from digitalio import DigitalInOut, Direction
|
||||||
# 构建LED对象和初始化
|
# 构建LED对象和初始化
|
||||||
while True:
|
while True:
|
||||||
led = DigitalInOut(board.LED) # 定义引脚编号
|
led = DigitalInOut(board.CS1) # 定义引脚编号
|
||||||
led.direction = Direction.OUTPUT # IO为输出
|
led.direction = Direction.OUTPUT # IO为输出
|
||||||
led.value = 0 # 输出低电平,熄灭板载LED蓝灯
|
led.value = 0 # 输出低电平,熄灭板载LED蓝灯
|
||||||
print("熄灭")
|
print("熄灭")
|
||||||
|
|
Loading…
Reference in New Issue