14
14
#define LED_BUILTIN 11
15
15
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16
16
17
+ /*
18
+ * Battery
19
+ */
20
+ #define PIN_VBAT (10)
21
+
22
+ /*
23
+ * Buttons
24
+ */
25
+ #define PIN_BUTTON1 (0)
26
+
27
+ /*
28
+ * Serial interfaces
29
+ */
17
30
static const uint8_t TX = 9 ;
18
31
static const uint8_t RX = 8 ;
19
- #define TX1 TX
20
- #define RX1 RX
21
32
33
+ /*
34
+ * Wire Interfaces
35
+ */
22
36
static const uint8_t SDA = 14 ;
23
37
static const uint8_t SCL = 13 ;
24
- #define WIRE1_PIN_DEFINED
25
- static const uint8_t SDA1 = 34 ;
26
- static const uint8_t SCL1 = 33 ;
27
38
39
+ /*
40
+ * SPI interfaces
41
+ */
28
42
static const uint8_t SS = 45 ;
29
43
static const uint8_t MOSI = 39 ;
30
44
static const uint8_t SCK = 40 ;
31
45
static const uint8_t MISO = 41 ;
32
46
47
+ /*
48
+ * Screen
49
+ */
50
+ #define PIN_OLED_SDA (14)
51
+ #define PIN_OLED_SCL (13)
52
+ #define PIN_OLED_EN (12)
53
+
54
+ /*
55
+ * LoRa
56
+ */
57
+ #define PIN_SX126X_NSS (45)
58
+ #define PIN_SX126X_DIO1 (42)
59
+ #define PIN_SX126X_BUSY (43)
60
+ #define PIN_SX126X_RESET (44)
61
+ #define PIN_SX126X_TXEN (-1)
62
+ #define PIN_SX126X_RXEN (46)
63
+ #define SX126X_DIO2_AS_RF_SWITCH
64
+ #define SX126X_DIO3_TCXO_VOLTAGE 1.8
65
+
66
+ /*
67
+ * MFP
68
+ */
69
+ #define PIN_MFP1 (38)
70
+ #define PIN_MFP2 (37)
71
+ #define PIN_MFP3 (36)
72
+ #define PIN_MFP4 (35)
73
+
74
+ /*
75
+ * Power
76
+ */
77
+ #define PIN_PERI_EN (1)
78
+
79
+ /*
80
+ * PINs
81
+ */
33
82
static const uint8_t A0 = 2 ;
34
83
static const uint8_t A1 = 3 ;
35
84
static const uint8_t A2 = 4 ;
36
85
static const uint8_t A3 = 5 ;
37
86
static const uint8_t A4 = 6 ;
38
87
static const uint8_t A5 = 7 ;
39
-
40
88
static const uint8_t D0 = 8 ;
41
89
static const uint8_t D1 = 9 ;
42
90
static const uint8_t D2 = 11 ;
@@ -51,33 +99,9 @@ static const uint8_t D10 = 48;
51
99
static const uint8_t D11 = 21 ;
52
100
static const uint8_t D12 = 18 ;
53
101
static const uint8_t D13 = 17 ;
54
-
55
- /*
56
- * Screen
57
- */
58
- #define PIN_SSD1312_SDA (14)
59
- #define PIN_SSD1312_SCL (13) // DC
60
- #define PIN_OLED_EN (12)
61
-
62
- /*
63
- * LoRa
64
- */
65
- #define PIN_SX126X_NSS (45)
66
- #define PIN_SX126X_DIO1 (42)
67
- #define PIN_SX126X_BUSY (43)
68
- #define PIN_SX126X_RESET (44)
69
- #define PIN_SX126X_TXEN (-1)
70
- #define PIN_SX126X_RXEN (46)
71
- #define SX126X_DIO2_AS_RF_SWITCH
72
- #define SX126X_DIO3_TCXO_VOLTAGE 1.8
73
-
74
- /*
75
- * MFP Pins
76
- */
77
- #define PIN_MFP1 (38)
78
- #define PIN_MFP2 (37)
79
- #define PIN_MFP3 (36)
80
- #define PIN_MFP4 (35)
81
- #define PIN_MFP_PWR (1)
102
+ static const uint8_t MTCK = 39 ;
103
+ static const uint8_t MTDO = 40 ;
104
+ static const uint8_t MTDI = 41 ;
105
+ static const uint8_t MTMS = 42 ;
82
106
83
107
#endif /* Pins_Arduino_h */
0 commit comments