@@ -32,32 +32,32 @@ extern "C"
32
32
#endif // __cplusplus
33
33
34
34
// Number of pins defined in PinDescription array
35
- #define PINS_COUNT (29u )
36
- #define NUM_DIGITAL_PINS (13u )
35
+ #define PINS_COUNT (27u )
36
+ #define NUM_DIGITAL_PINS (11u )
37
37
#define NUM_ANALOG_INPUTS (2u)
38
38
#define NUM_ANALOG_OUTPUTS (0u)
39
39
40
40
// LEDs
41
- #define PIN_LEDRT (24 )
42
- #define PIN_LEDRB (25 )
43
- #define PIN_LEDG (26 )
44
- #define PIN_LEDB (27 )
41
+ #define PIN_LEDRT (22 )
42
+ #define PIN_LEDRB (23 )
43
+ #define PIN_LEDG (24 )
44
+ #define PIN_LEDB (25 )
45
45
#define LED_BUILTIN PIN_LEDRT
46
46
static const uint8_t LED_RED_TOP = PIN_LEDRT ;
47
47
static const uint8_t LED_RED_BOT = PIN_LEDRB ;
48
48
static const uint8_t LED_GREEN = PIN_LEDG ;
49
49
static const uint8_t LED_BLUE = PIN_LEDB ;
50
50
51
51
// Button
52
- #define PIN_BUTTON (28 )
52
+ #define PIN_BUTTON (26 )
53
53
54
54
static const uint8_t BTN = PIN_BUTTON ;
55
55
56
56
/*
57
57
* Analog pins
58
58
*/
59
- #define PIN_A0 (11 )
60
- #define PIN_A1 (15 )
59
+ #define PIN_A0 (9 )
60
+ #define PIN_A1 (10 )
61
61
62
62
static const uint8_t A0 = PIN_A0 ; // AIN2
63
63
static const uint8_t A1 = PIN_A1 ; // AIN1
@@ -67,27 +67,27 @@ static const uint8_t A1 = PIN_A1 ; // AIN1
67
67
* Serial interfaces
68
68
*/
69
69
// Serial
70
- #define PIN_SERIAL_RX (15 )
71
- #define PIN_SERIAL_TX (16 )
70
+ #define PIN_SERIAL_RX (13 )
71
+ #define PIN_SERIAL_TX (14 )
72
72
73
73
/*
74
74
* SPI Interfaces
75
75
*/
76
76
#define SPI_INTERFACES_COUNT 2
77
77
78
- #define PIN_SPI_MISO (10 )
79
- #define PIN_SPI_MOSI (9 )
78
+ #define PIN_SPI_MISO (8 )
79
+ #define PIN_SPI_MOSI (7 )
80
80
#define PIN_SPI_SCK (PIN_A0)
81
81
82
82
static const uint8_t SS = PIN_A1 ;
83
83
static const uint8_t MOSI = PIN_SPI_MOSI ;
84
84
static const uint8_t MISO = PIN_SPI_MISO ;
85
85
static const uint8_t SCK = PIN_SPI_SCK ;
86
86
87
- #define PIN_SPI1_SS (17 )
88
- #define PIN_SPI1_MISO (18 )
89
- #define PIN_SPI1_MOSI (19 )
90
- #define PIN_SPI1_SCK (20 )
87
+ #define PIN_SPI1_SS (15 )
88
+ #define PIN_SPI1_MISO (16 )
89
+ #define PIN_SPI1_MOSI (17 )
90
+ #define PIN_SPI1_SCK (18 )
91
91
92
92
static const uint8_t SS1 = PIN_SPI1_SS ;
93
93
static const uint8_t MOSI1 = PIN_SPI1_MOSI ;
@@ -99,8 +99,8 @@ static const uint8_t SCK1 = PIN_SPI1_SCK ;
99
99
*/
100
100
#define WIRE_INTERFACES_COUNT 1
101
101
102
- #define PIN_WIRE_SDA (13 )
103
- #define PIN_WIRE_SCL (14 )
102
+ #define PIN_WIRE_SDA (11 )
103
+ #define PIN_WIRE_SCL (12 )
104
104
105
105
static const uint8_t SDA = PIN_WIRE_SDA ;
106
106
static const uint8_t SCL = PIN_WIRE_SCL ;
@@ -113,13 +113,13 @@ static const uint8_t SCL = PIN_WIRE_SCL;
113
113
/*
114
114
* Other DWM1001 internal IOs
115
115
*/
116
- #define PIN_DW_RST (21 )
117
- #define PIN_DW_IRQ (22 )
116
+ #define PIN_DW_RST (19 )
117
+ #define PIN_DW_IRQ (20 )
118
118
119
119
static const uint8_t DW_RST = PIN_DW_RST ;
120
120
static const uint8_t DW_IRQ = PIN_DW_IRQ ;
121
121
122
- #define PIN_ACC_IRQ (23 )
122
+ #define PIN_ACC_IRQ (21 )
123
123
124
124
static const uint8_t ACC_IRQ = PIN_ACC_IRQ ;
125
125
0 commit comments