1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2020-04-29 supperthomas first version 9 * 2021-06-26 supperthomas fix led 10 * 11 */ 12 13 #include <rtthread.h> 14 #include <rtdevice.h> 15 main(void)16int main(void) 17 { 18 int count = 1; 19 rt_pin_mode(RT_BSP_LED_PIN, PIN_MODE_OUTPUT); 20 21 while (count++) 22 { 23 rt_pin_write(RT_BSP_LED_PIN, PIN_HIGH); 24 rt_thread_mdelay(500); 25 26 rt_pin_write(RT_BSP_LED_PIN, PIN_LOW); 27 rt_thread_mdelay(500); 28 } 29 return RT_EOK; 30 } 31 32