File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Expand file tree Collapse file tree 2 files changed +29
-4
lines changed
10000
Original file line number Diff line number Diff line change 38
38
#define SPI_HOWMANY (1u)
39
39
#define WIRE_HOWMANY (2u)
40
40
41
+ // Pin overrides specific to the QT Py RP2040
42
+ #define __PIN_A0 (29u)
43
+ #define __PIN_A1 (28u)
44
+ #define __PIN_A2 (27u)
45
+ #define __PIN_A3 (26u)
46
+
41
47
#include "../generic/common.h"
Original file line number Diff line number Diff line change @@ -39,10 +39,29 @@ static const uint8_t D27 = (27u);
39
39
static const uint8_t D28 = (28u );
40
40
static const uint8_t D29 = (29u );
41
41
42
- static const uint8_t A0 = (26u );
43
- static const uint8_t A1 = (27u );
44
- static const uint8_t A2 = (28u );
45
- static const uint8_t A3 = (29u );
42
+ #ifdef __PIN_A0
43
+ static const uint8_t A0 = __PIN_A0 ;
44
+ #else
45
+ static const uint8_t A0 = (26u );
46
+ #endif
47
+
48
+ #ifdef __PIN_A1
49
+ static const uint8_t A1 = __PIN_A1 ;
50
+ #else
51
+ static const uint8_t A1 = (27u );
52
+ #endif
53
+
54
+ #ifdef __PIN_A2
55
+ static const uint8_t A2 = __PIN_A2 ;
56
+ #else
57
+ static const uint8_t A2 = (28u );
58
+ #endif
59
+
60
+ #ifdef __PIN_A3
61
+ static const uint8_t A3 = __PIN_A3 ;
62
+ #else
63
+ static const uint8_t A3 = (29u );
64
+ #endif
46
65
47
66
static const uint8_t SS = PIN_SPI0_SS ;
48
67
static const uint8_t MOSI = PIN_SPI0_MOSI ;
You can’t perform that action at this time.
0 commit comments