Skip to content

Commit 20b0fd1

Browse files
refactor: readability
1 parent f85db18 commit 20b0fd1

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

variants/lilygo_techo_lite/platformio.ini

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,14 @@ build_flags = ${nrf52_base.build_flags}
1111
-D RADIO_CLASS=CustomSX1262
1212
-D WRAPPER_CLASS=CustomSX1262Wrapper
1313
-D LORA_TX_POWER=22
14-
-D P_LORA_DIO_1=40
15-
-D P_LORA_NSS=11
16-
-D P_LORA_RESET=7
17-
-D P_LORA_BUSY=14
18-
-D P_LORA_SCLK=13
19-
-D P_LORA_MISO=17
20-
-D P_LORA_MOSI=15
2114
-D SX126X_POWER_EN=30
2215
-D SX126X_CURRENT_LIMIT=140
2316
-D SX126X_RX_BOOSTED_GAIN=1
2417
-D P_LORA_TX_LED=LED_GREEN
2518
-D DISABLE_DIAGNOSTIC_OUTPUT
2619
-D ENV_INCLUDE_GPS=1
27-
; -D ENV_INCLUDE_BME280=1
2820
-D GPS_BAUD_RATE=9600
2921
-D PIN_GPS_EN=GPS_EN
30-
; -D TELEM_BME280_ADDRESS=0x77
3122
-D DISPLAY_CLASS=GxEPDDisplay
3223
-D EINK_DISPLAY_MODEL=GxEPD2_122_T61
3324
-D EINK_SCALE_X=1.0f

variants/lilygo_techo_lite/variant.h

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,18 @@
110110
#define SX126X_RF_VC1 _PINNUM(0, 27)
111111
#define SX126X_RF_VC2 _PINNUM(0, 33)
112112

113+
#define P_LORA_DIO_1 SX126X_DIO1
114+
#define P_LORA_NSS LORA_CS
115+
#define P_LORA_RESET SX126X_RESET
116+
#define P_LORA_BUSY SX126X_BUSY
117+
#define P_LORA_SCLK PIN_SPI_SCK
118+
#define P_LORA_MISO PIN_SPI_MISO
119+
#define P_LORA_MOSI PIN_SPI_MOSI
120+
113121
////////////////////////////////////////////////////////////////////////////////
114122
// SPI1
115123

116-
#define PIN_SPI1_MISO (-1)
124+
#define PIN_SPI1_MISO (-1) // Not used for Display
117125
#define PIN_SPI1_MOSI _PINNUM(0, 20)
118126
#define PIN_SPI1_SCK _PINNUM(0, 19)
119127

@@ -125,15 +133,15 @@ extern const int SCK;
125133
////////////////////////////////////////////////////////////////////////////////
126134
// Display
127135

128-
// #define DISP_MISO (-1)
136+
// #define DISP_MISO (-1) // Not used for Display
129137
#define DISP_MOSI _PINNUM(0, 20)
130138
#define DISP_SCLK _PINNUM(0, 19)
131139
#define DISP_CS _PINNUM(0, 22)
132140
#define DISP_DC _PINNUM(0, 21)
133141
#define DISP_RST _PINNUM(0, 28)
134142
#define DISP_BUSY _PINNUM(0, 3)
135143
#define DISP_POWER _PINNUM(1, 12)
136-
// #define DISP_BACKLIGHT (-1)
144+
// #define DISP_BACKLIGHT (-1) // Display has no backlight
137145

138146
#define PIN_DISPLAY_CS DISP_CS
139147
#define PIN_DISPLAY_DC DISP_DC

0 commit comments

Comments
 (0)