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