From 43b6b5da47f5cf13f8772c113bcf29bb589321d7 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Mon, 25 Dec 2023 15:30:15 +0800 Subject: [PATCH] update --- close_led.py | 2 +- open_led.py | 2 +- test_micropyhon.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 test_micropyhon.py 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