@@ -42,18 +42,18 @@ extern "C"
42
42
#define NUM_ANALOG_OUTPUTS (0u)
43
43
44
44
// LEDs
45
- #define PIN_LED (13)
45
+ #define PIN_LED (13) // P0.13
46
46
#define LED_BUILTIN PIN_LED
47
47
48
48
/*
49
49
* Analog pins
50
50
*/
51
- #define PIN_A0 (1)
52
- #define PIN_A1 (2)
53
- #define PIN_A2 (3)
54
- #define PIN_A3 (4)
55
- #define PIN_A4 (5)
56
- #define PIN_A5 (6)
51
+ #define PIN_A0 (1) // P0.01
52
+ #define PIN_A1 (2) // P0.02
53
+ #define PIN_A2 (3) // P0.03
54
+ #define PIN_A3 (4) // P0.04
55
+ #define PIN_A4 (5) // P0.05
56
+ #define PIN_A5 (6) // P0.06
57
57
58
58
static const uint8_t A0 = PIN_A0 ;
59
59
static const uint8_t A1 = PIN_A1 ;
@@ -71,19 +71,19 @@ static const uint8_t A5 = PIN_A5 ;
71
71
* Serial interfaces
72
72
*/
73
73
// Serial
74
- #define PIN_SERIAL_RX (0)
75
- #define PIN_SERIAL_TX (1)
74
+ #define PIN_SERIAL_RX (0) // P0.00
75
+ #define PIN_SERIAL_TX (1) // P0.01
76
76
77
77
/*
78
78
* SPI Interfaces
79
79
*/
80
80
#define SPI_INTERFACES_COUNT 1
81
81
82
- #define PIN_SPI_MISO (22)
83
- #define PIN_SPI_MOSI (23)
84
- #define PIN_SPI_SCK (24)
82
+ #define PIN_SPI_MISO (22) // P0.22
83
+ #define PIN_SPI_MOSI (23) // P0.23
84
+ #define PIN_SPI_SCK (24) // P0.24
85
85
86
- static const uint8_t SS = 25 ;
86
+ static const uint8_t SS = 25 ; // P0.25
87
87
static const uint8_t MOSI = PIN_SPI_MOSI ;
88
88
static const uint8_t MISO = PIN_SPI_MISO ;
89
89
static const uint8_t SCK = PIN_SPI_SCK ;
@@ -93,8 +93,8 @@ static const uint8_t SCK = PIN_SPI_SCK ;
93
93
*/
94
94
#define WIRE_INTERFACES_COUNT 1
95
95
96
- #define PIN_WIRE_SDA (20u)
97
- #define PIN_WIRE_SCL (21u)
96
+ #define PIN_WIRE_SDA (20u) // P0.20
97
+ #define PIN_WIRE_SCL (21u) // P0.21
98
98
99
99
static const uint8_t SDA = PIN_WIRE_SDA ;
100
100
static const uint8_t SCL = PIN_WIRE_SCL ;
0 commit comments