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 * 2018-11-06 SummerGift first version 9 * 2019-1-10 e31207077 add stm32f767-st-nucleo bsp 10 */ 11 12 #include <rtthread.h> 13 #include <rtdevice.h> 14 #include <board.h> 15 16 /* defined the LED1 pin: PB0 */ 17 #define LED1_PIN GET_PIN(B, 0) 18 main(void)19int main(void) 20 { 21 /* set LED1 pin mode to output */ 22 rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT); 23 24 while (1) 25 { 26 rt_pin_write(LED1_PIN, PIN_HIGH); 27 rt_thread_mdelay(500); 28 rt_pin_write(LED1_PIN, PIN_LOW); 29 rt_thread_mdelay(500); 30 } 31 } 32