arduino_pinout.h 717 B

12345678910111213141516171819202122232425262728
  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_PINOUT_H__
  11. #define __UNO_PINOUT_H__
  12. #define LED_BUILTIN 13 /* Built-in LED */
  13. #define ARDUINO_PWM_HZ 500 /* Arduino UNO's PWM is around 500Hz */
  14. #define ARDUINO_PINOUT_PIN_MAX 20 /* Arduino UNO has 20 pins in total*/
  15. #define ARDUINO_PINOUT_ADC_MAX 6 /* Arduino UNO has 5 ADC pins */
  16. #define ARDUINO_PINOUT_PWM_MAX 5 /* Arduino UNO has 5 PWM pins */
  17. #define A0 (14)
  18. #define A1 (15)
  19. #define A2 (16)
  20. #define A3 (17)
  21. #define A4 (18)
  22. #define A5 (19)
  23. #endif /* __UNO_PINOUT_H__ */