arduino_layout.h 579 B

1234567891011121314151617181920212223242526272829
  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. #ifndef __UNO_LAYOUT_H__
  11. #define __UNO_LAYOUT_H__
  12. #include <rtconfig.h>
  13. #define LED_BUILTIN 13 /* Built-in LED */
  14. #define ARDUINO_PWM_HZ 500 /* Arduino UNO's PWM is around 500Hz */
  15. #define ARDUINO_LAYOUT_PIN_MAX 20
  16. #define A0 (14)
  17. #define A1 (15)
  18. #define A2 (16)
  19. #define A3 (17)
  20. #define A4 (18)
  21. #define A5 (19)
  22. #define A6 (20)
  23. #define A7 (21)
  24. #endif