修改了LED灯闪烁问题
This commit is contained in:
parent
3c3fed306e
commit
4e7e2ea37f
|
@ -33,7 +33,13 @@ static void BSP_Led_thread_entry(void *param)
|
||||||
}
|
}
|
||||||
else if ((!nt26k_conncet_tcp_flag))
|
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)
|
else if (SysControl.status == KMuteEvent)
|
||||||
|
@ -46,14 +52,19 @@ static void BSP_Led_thread_entry(void *param)
|
||||||
}
|
}
|
||||||
else
|
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)
|
int BSP_LED_Init(void)
|
||||||
{
|
{
|
||||||
led_r = agile_led_create(LED_R_PIN, PIN_HIGH, "100,0", 0);
|
led_r = agile_led_create(LED_R_PIN, PIN_HIGH, "100,0", 0);
|
||||||
|
|
Loading…
Reference in New Issue