This commit is contained in:
xyj 2023-12-25 15:30:15 +08:00
parent 73177bd792
commit 43b6b5da47
3 changed files with 2 additions and 3 deletions

View File

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

View File

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

View File

@ -1 +0,0 @@
print(help('modules'))