use timer
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
#include <rtdevice.h>
|
||||
#endif /* RT_USING_NANO */
|
||||
|
||||
#include "led_show.h"
|
||||
|
||||
void show_app_version (void)
|
||||
{
|
||||
rt_kprintf("\r\n\r\n================================================\r\n");
|
||||
@@ -26,13 +24,7 @@ int main(void)
|
||||
finsh_set_prompt("chrg ");
|
||||
#endif
|
||||
|
||||
led_init();
|
||||
|
||||
while (1)
|
||||
{
|
||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||
rt_thread_mdelay(500);
|
||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||
while (1) {
|
||||
rt_thread_mdelay(500);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user