main.c 555 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) 2018 Shanghai Eastsoft Microelectronics Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-10-23 yuzrain the first version
  9. */
  10. #include <rtthread.h>
  11. #include <rtdevice.h>
  12. #define LED_PIN 61
  13. int main(void)
  14. {
  15. /* LED pin configuration */
  16. rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
  17. while (1)
  18. {
  19. rt_pin_write(LED_PIN, PIN_HIGH);
  20. rt_thread_mdelay(1000);
  21. rt_pin_write(LED_PIN, PIN_LOW);
  22. rt_thread_mdelay(1000);
  23. }
  24. }