修改了LED灯闪烁问题

This commit is contained in:
小马_666 2025-01-17 14:43:56 +08:00
parent 3c3fed306e
commit 4e7e2ea37f
1 changed files with 15 additions and 4 deletions

View File

@ -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);