This commit is contained in:
xyj 2023-12-26 17:40:11 +08:00
parent d8f083c023
commit 8fc94c9814
2 changed files with 2 additions and 2 deletions

View File

@ -12,6 +12,6 @@ if __name__ == '__main__':
# 构建LED对象和初始化
led = DigitalInOut(board.CS1) # 定义引脚编号
led.direction = Direction.OUTPUT # IO为输出
led.value = 0 #输出低电平熄灭板载LED蓝灯
led.value = 1 #输出低电平熄灭板载LED蓝灯
except Exception as e:
pass

View File

@ -13,6 +13,6 @@ if __name__ == '__main__':
# 构建LED对象和初始化
led = DigitalInOut(board.CS1) # 定义引脚编号
led.direction = Direction.OUTPUT # IO为输出
led.value = 1 # 输出高电平点亮板载LED蓝灯
led.value = 0 # 输出高电平点亮板载LED蓝灯
except Exception as e:
pass