arduino_main.cpp 481 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-12-21 ChuShicheng first version
  9. */
  10. #include <Arduino.h>
  11. void setup(void)
  12. {
  13. /* put your setup code here, to run once: */
  14. pinMode(LED_BUILTIN, OUTPUT);
  15. }
  16. void loop(void)
  17. {
  18. /* put your main code here, to run repeatedly: */
  19. digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
  20. delay(100);
  21. }