diff --git a/close_led.py b/close_led.py index 458ebd9..ffb1d33 100644 --- a/close_led.py +++ b/close_led.py @@ -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: diff --git a/open_led.py b/open_led.py index cbb200e..146c209 100644 --- a/open_led.py +++ b/open_led.py @@ -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: diff --git a/test_micropyhon.py b/test_micropyhon.py deleted file mode 100644 index 9634f3b..0000000 --- a/test_micropyhon.py +++ /dev/null @@ -1 +0,0 @@ -print(help('modules')) \ No newline at end of file