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