1
0

arduino_main.cpp 474 B

1234567891011121314151617181920212223
  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. * 2021-12-10 Meco Man 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(200);
  21. }