@@ -32,9 +32,9 @@ extern "C"
32
32
#endif // __cplusplus
33
33
34
34
// Number of pins defined in PinDescription array
35
- #define PINS_COUNT (25u )
35
+ #define PINS_COUNT (26u )
36
36
#define NUM_DIGITAL_PINS (20u)
37
- #define NUM_ANALOG_INPUTS (6u )
37
+ #define NUM_ANALOG_INPUTS (8u )
38
38
#define NUM_ANALOG_OUTPUTS (0u)
39
39
40
40
// LEDs
@@ -59,25 +59,29 @@ extern "C"
59
59
#define PIN_A3 (17)
60
60
#define PIN_A4 (18)
61
61
#define PIN_A5 (19)
62
-
63
- static const uint8_t A0 = PIN_A0 ;
64
- static const uint8_t A1 = PIN_A1 ;
65
- static const uint8_t A2 = PIN_A2 ;
66
- static const uint8_t A3 = PIN_A3 ;
67
- static const uint8_t A4 = PIN_A4 ;
68
- static const uint8_t A5 = PIN_A5 ;
62
+ #define PIN_A6 (20) /* AIN3 (P0.05) */
63
+ #define PIN_A7 (21) /* AIN0 (P0.02) / AREF */
64
+
65
+ static const uint8_t A0 = PIN_A0 ; // AIN1
66
+ static const uint8_t A1 = PIN_A1 ; // AIN2
67
+ static const uint8_t A2 = PIN_A2 ; // AIN4
68
+ static const uint8_t A3 = PIN_A3 ; // AIN5
69
+ static const uint8_t A4 = PIN_A4 ; // AIN6
70
+ static const uint8_t A5 = PIN_A5 ; // AIN7
71
+ static const uint8_t A6 = PIN_A6 ; // AIN3 (P0.05)
72
+ static const uint8_t A7 = PIN_A7 ; // AIN0 (P0.02) / AREF
69
73
#define ADC_RESOLUTION 14
70
74
71
75
// Other pins
72
- #define PIN_AREF (24 )
76
+ #define PIN_AREF (21 )
73
77
static const uint8_t AREF = PIN_AREF ;
74
78
75
79
/*
76
80
* Serial interfaces
77
81
*/
78
82
// Serial
79
- #define PIN_SERIAL_RX (22 )
80
- #define PIN_SERIAL_TX (23 )
83
+ #define PIN_SERIAL_RX (24 )
84
+ #define PIN_SERIAL_TX (25 )
81
85
82
86
/*
83
87
* SPI Interfaces
@@ -98,8 +102,8 @@ static const uint8_t SCK = PIN_SPI_SCK ;
98
102
*/
99
103
#define WIRE_INTERFACES_COUNT 1
100
104
101
- #define PIN_WIRE_SDA (20u )
102
- #define PIN_WIRE_SCL (21u )
105
+ #define PIN_WIRE_SDA (22u )
106
+ #define PIN_WIRE_SCL (23u )
103
107
104
108
#ifdef __cplusplus
105
109
}
0 commit comments