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 * 2025-08-04 hydevcode first version 9 */ 10 #include "rtthread.h" 11 #include <rtdevice.h> 12 13 #define LED_PIN 25 14 main()15int main() { 16 17 rt_kprintf("Hello, RT-Thread!\n"); 18 19 rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT); 20 21 while (1) 22 { 23 rt_pin_write(LED_PIN, 1); 24 rt_thread_mdelay(1000); 25 rt_pin_write(LED_PIN, 0); 26 rt_thread_mdelay(1000); 27 } 28 return 0; 29 30 }