arduino_main.cpp 527 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. * 2021-12-10 Meco Man first version
  9. * 2022-07-07 shiwa Adapt ES32F369x
  10. */
  11. #include <Arduino.h>
  12. void setup(void)
  13. {
  14. /* put your setup code here, to run once: */
  15. pinMode(LED_BUILTIN, OUTPUT);
  16. }
  17. void loop(void)
  18. {
  19. /* put your main code here, to run repeatedly: */
  20. digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
  21. delay(250);
  22. }