update
This commit is contained in:
parent
73177bd792
commit
43b6b5da47
|
@ -10,7 +10,7 @@ if __name__ == '__main__':
|
|||
|
||||
try:
|
||||
# 构建LED对象和初始化
|
||||
led = DigitalInOut(board) # 定义引脚编号
|
||||
led = DigitalInOut(board.CS1) # 定义引脚编号
|
||||
led.direction = Direction.OUTPUT # IO为输出
|
||||
led.value = 0 #输出低电平,熄灭板载LED蓝灯
|
||||
except Exception as e:
|
||||
|
|
|
@ -11,7 +11,7 @@ if __name__ == '__main__':
|
|||
|
||||
try:
|
||||
# 构建LED对象和初始化
|
||||
led = DigitalInOut(board) # 定义引脚编号
|
||||
led = DigitalInOut(board.CS1) # 定义引脚编号
|
||||
led.direction = Direction.OUTPUT # IO为输出
|
||||
led.value = 1 # 输出高电平,点亮板载LED蓝灯
|
||||
except Exception as e:
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
print(help('modules'))
|
Loading…
Reference in New Issue