refactor: readability
This commit is contained in:
@@ -11,23 +11,14 @@ build_flags = ${nrf52_base.build_flags}
|
|||||||
-D RADIO_CLASS=CustomSX1262
|
-D RADIO_CLASS=CustomSX1262
|
||||||
-D WRAPPER_CLASS=CustomSX1262Wrapper
|
-D WRAPPER_CLASS=CustomSX1262Wrapper
|
||||||
-D LORA_TX_POWER=22
|
-D LORA_TX_POWER=22
|
||||||
-D P_LORA_DIO_1=40
|
|
||||||
-D P_LORA_NSS=11
|
|
||||||
-D P_LORA_RESET=7
|
|
||||||
-D P_LORA_BUSY=14
|
|
||||||
-D P_LORA_SCLK=13
|
|
||||||
-D P_LORA_MISO=17
|
|
||||||
-D P_LORA_MOSI=15
|
|
||||||
-D SX126X_POWER_EN=30
|
-D SX126X_POWER_EN=30
|
||||||
-D SX126X_CURRENT_LIMIT=140
|
-D SX126X_CURRENT_LIMIT=140
|
||||||
-D SX126X_RX_BOOSTED_GAIN=1
|
-D SX126X_RX_BOOSTED_GAIN=1
|
||||||
-D P_LORA_TX_LED=LED_GREEN
|
-D P_LORA_TX_LED=LED_GREEN
|
||||||
-D DISABLE_DIAGNOSTIC_OUTPUT
|
-D DISABLE_DIAGNOSTIC_OUTPUT
|
||||||
-D ENV_INCLUDE_GPS=1
|
-D ENV_INCLUDE_GPS=1
|
||||||
; -D ENV_INCLUDE_BME280=1
|
|
||||||
-D GPS_BAUD_RATE=9600
|
-D GPS_BAUD_RATE=9600
|
||||||
-D PIN_GPS_EN=GPS_EN
|
-D PIN_GPS_EN=GPS_EN
|
||||||
; -D TELEM_BME280_ADDRESS=0x77
|
|
||||||
-D DISPLAY_CLASS=GxEPDDisplay
|
-D DISPLAY_CLASS=GxEPDDisplay
|
||||||
-D EINK_DISPLAY_MODEL=GxEPD2_122_T61
|
-D EINK_DISPLAY_MODEL=GxEPD2_122_T61
|
||||||
-D EINK_SCALE_X=1.0f
|
-D EINK_SCALE_X=1.0f
|
||||||
|
|||||||
@@ -110,10 +110,18 @@
|
|||||||
#define SX126X_RF_VC1 _PINNUM(0, 27)
|
#define SX126X_RF_VC1 _PINNUM(0, 27)
|
||||||
#define SX126X_RF_VC2 _PINNUM(0, 33)
|
#define SX126X_RF_VC2 _PINNUM(0, 33)
|
||||||
|
|
||||||
|
#define P_LORA_DIO_1 SX126X_DIO1
|
||||||
|
#define P_LORA_NSS LORA_CS
|
||||||
|
#define P_LORA_RESET SX126X_RESET
|
||||||
|
#define P_LORA_BUSY SX126X_BUSY
|
||||||
|
#define P_LORA_SCLK PIN_SPI_SCK
|
||||||
|
#define P_LORA_MISO PIN_SPI_MISO
|
||||||
|
#define P_LORA_MOSI PIN_SPI_MOSI
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// SPI1
|
// SPI1
|
||||||
|
|
||||||
#define PIN_SPI1_MISO (-1)
|
#define PIN_SPI1_MISO (-1) // Not used for Display
|
||||||
#define PIN_SPI1_MOSI _PINNUM(0, 20)
|
#define PIN_SPI1_MOSI _PINNUM(0, 20)
|
||||||
#define PIN_SPI1_SCK _PINNUM(0, 19)
|
#define PIN_SPI1_SCK _PINNUM(0, 19)
|
||||||
|
|
||||||
@@ -125,7 +133,7 @@ extern const int SCK;
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Display
|
// Display
|
||||||
|
|
||||||
// #define DISP_MISO (-1)
|
// #define DISP_MISO (-1) // Not used for Display
|
||||||
#define DISP_MOSI _PINNUM(0, 20)
|
#define DISP_MOSI _PINNUM(0, 20)
|
||||||
#define DISP_SCLK _PINNUM(0, 19)
|
#define DISP_SCLK _PINNUM(0, 19)
|
||||||
#define DISP_CS _PINNUM(0, 22)
|
#define DISP_CS _PINNUM(0, 22)
|
||||||
@@ -133,7 +141,7 @@ extern const int SCK;
|
|||||||
#define DISP_RST _PINNUM(0, 28)
|
#define DISP_RST _PINNUM(0, 28)
|
||||||
#define DISP_BUSY _PINNUM(0, 3)
|
#define DISP_BUSY _PINNUM(0, 3)
|
||||||
#define DISP_POWER _PINNUM(1, 12)
|
#define DISP_POWER _PINNUM(1, 12)
|
||||||
// #define DISP_BACKLIGHT (-1)
|
// #define DISP_BACKLIGHT (-1) // Display has no backlight
|
||||||
|
|
||||||
#define PIN_DISPLAY_CS DISP_CS
|
#define PIN_DISPLAY_CS DISP_CS
|
||||||
#define PIN_DISPLAY_DC DISP_DC
|
#define PIN_DISPLAY_DC DISP_DC
|
||||||
|
|||||||
Reference in New Issue
Block a user