From 4e7e2ea37f9780c159fd1dc426590429b4f35d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=5F666?= <13089258+pony-six-hundred-and-sixty-six@user.noreply.gitee.com> Date: Fri, 17 Jan 2025 14:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86LED=E7=81=AF?= =?UTF-8?q?=E9=97=AA=E7=83=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/src/bsp_led.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/bsp/src/bsp_led.c b/bsp/src/bsp_led.c index ba6492d..c1bf4f3 100644 --- a/bsp/src/bsp_led.c +++ b/bsp/src/bsp_led.c @@ -33,7 +33,13 @@ static void BSP_Led_thread_entry(void *param) } else if ((!nt26k_conncet_tcp_flag)) { - LED_G_INTERNET; + LED_STOP(r); + LED_STOP(g); + LED_STOP(y); + rt_pin_write(LED_G_PIN, PIN_HIGH); + rt_thread_mdelay(500); + rt_pin_write(LED_G_PIN, PIN_LOW); + rt_thread_mdelay(500); } } else if (SysControl.status == KMuteEvent) @@ -46,14 +52,19 @@ static void BSP_Led_thread_entry(void *param) } else { - LED_G_INTERNET; + LED_STOP(r); + LED_STOP(g); + LED_STOP(y); + rt_pin_write(LED_G_PIN, PIN_HIGH); + rt_thread_mdelay(500); + rt_pin_write(LED_G_PIN, PIN_LOW); + rt_thread_mdelay(500); } } } - rt_thread_mdelay(1500); + rt_thread_mdelay(1000); } } - int BSP_LED_Init(void) { led_r = agile_led_create(LED_R_PIN, PIN_HIGH, "100,0", 0);