From 1befe16519370bf3ff8c2d09a7dfc7b1e3a325a7 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Tue, 26 Dec 2023 17:06:31 +0800 Subject: [PATCH] update --- test_led.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_led.py b/test_led.py index e9a752a..c194246 100644 --- a/test_led.py +++ b/test_led.py @@ -2,6 +2,7 @@ 实验名称:点亮第1个LED 实验平台:核桃派 ''' +import time #导入相关模块 import board @@ -12,5 +13,5 @@ led = DigitalInOut(board.LED) #定义引脚编号 led.direction = Direction.OUTPUT #IO为输出 led.value = 1 #输出高电平,点亮板载LED蓝灯 - -#led.value = 0 #输出低电平,熄灭板载LED蓝灯 \ No newline at end of file +time.sleep(10) +led.value = 0 #输出低电平,熄灭板载LED蓝灯 \ No newline at end of file