update
This commit is contained in:
parent
f3b2452d03
commit
2e33b491ac
|
@ -11,8 +11,8 @@ from digitalio import DigitalInOut, Direction
|
||||||
while True:
|
while True:
|
||||||
led = DigitalInOut(board.LED) # 定义引脚编号
|
led = DigitalInOut(board.LED) # 定义引脚编号
|
||||||
led.direction = Direction.OUTPUT # IO为输出
|
led.direction = Direction.OUTPUT # IO为输出
|
||||||
print("熄灭")
|
|
||||||
led.value = 0 # 输出低电平,熄灭板载LED蓝灯
|
led.value = 0 # 输出低电平,熄灭板载LED蓝灯
|
||||||
print("点亮")
|
print("熄灭")
|
||||||
time.sleep(20)
|
time.sleep(20)
|
||||||
led.value = 1 # 输出高电平,点亮板载LED蓝灯
|
led.value = 1 # 输出高电平,点亮板载LED蓝灯
|
||||||
|
print("点亮")
|
||||||
|
|
Loading…
Reference in New Issue