4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 12:13:36 +08:00
Man, Jianting (Meco) 7b47e8d052
[stm32f401-nucleo] arduino support (#5842)
* [stm32f401-nucleo] arduino support
* 增加application arduino main文件
* 调整目录结构
2022-04-20 09:09:58 +08:00

27 lines
485 B
C++

/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-12-10 Meco Man first version
*/
#include <Arduino.h>
uint8_t led = LED_BUILTIN;
void setup(void)
{
/* put your setup code here, to run once: */
pinMode(led, OUTPUT);
}
void loop(void)
{
/* put your main code here, to run repeatedly: */
digitalWrite(led, !digitalRead(led));
delay(100);
}