2021-12-13 11:36:51 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2021-12-10 Meco Man first version
|
|
|
|
*/
|
2022-02-17 13:36:15 +08:00
|
|
|
#ifndef Pins_Arduino_h
|
|
|
|
#define Pins_Arduino_h
|
2021-12-13 11:36:51 +08:00
|
|
|
|
|
|
|
#define LED_BUILTIN 13 /* Built-in LED */
|
|
|
|
|
|
|
|
#define ARDUINO_PWM_HZ 500 /* Arduino UNO's PWM is around 500Hz */
|
2021-12-14 08:53:12 +08:00
|
|
|
|
|
|
|
#define ARDUINO_PINOUT_PIN_MAX 20 /* Arduino UNO has 20 pins in total*/
|
2021-12-24 15:55:13 +08:00
|
|
|
#define ARDUINO_PINOUT_ADC_MAX 6 /* Arduino UNO has 6 ADC pins */
|
2021-12-14 08:53:12 +08:00
|
|
|
#define ARDUINO_PINOUT_PWM_MAX 5 /* Arduino UNO has 5 PWM pins */
|
2021-12-13 11:36:51 +08:00
|
|
|
|
2022-02-23 10:20:36 +08:00
|
|
|
#define ARDUINO_DEFAULT_IIC_BUS_NAME "i2c4"
|
|
|
|
|
2021-12-13 11:36:51 +08:00
|
|
|
#define A0 (14)
|
|
|
|
#define A1 (15)
|
|
|
|
#define A2 (16)
|
|
|
|
#define A3 (17)
|
|
|
|
#define A4 (18)
|
|
|
|
#define A5 (19)
|
|
|
|
|
2022-02-17 13:36:15 +08:00
|
|
|
#endif /* Pins_Arduino_h */
|