arduino_main.cpp 450 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2006-2024, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2024-01-25 ShichengChu first version
  9. */
  10. #include <Arduino.h>
  11. void setup(void)
  12. {
  13. /* put your setup code here, to run once: */
  14. Serial2.begin();
  15. Serial2.println("Hello RTduino!");
  16. }
  17. void loop(void)
  18. {
  19. /* put your main code here, to run repeatedly: */
  20. delay(1000);
  21. }