arduino_main.cpp 481 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * 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>

void setup(void)
{
    /* put your setup code here, to run once: */
mysterywolf's avatar
mysterywolf 已提交
16
    pinMode(LED_BUILTIN, OUTPUT);
17 18 19 20 21
}

void loop(void)
{
    /* put your main code here, to run repeatedly: */
mysterywolf's avatar
mysterywolf 已提交
22
    digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
23 24
    delay(100);
}