WIP LoRAType

This commit is contained in:
Ben Meadors
2023-10-16 10:54:43 -05:00
parent 2c625f6ba1
commit 54240c0d87
5 changed files with 78 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
[env:lora_type]
extends = esp32_base
board = esp32doit-devkit-v1
board_level = extra
build_flags =
${esp32_base.build_flags}
-DLORA_TYPE
-DEBYTE_E22
-Ivariants/lora_type
-DEPD_HEIGHT=200
-DEPD_WIDTH=200
-DM5_COREINK
lib_deps =
${esp32_base.lib_deps}
zinggjm/GxEPD2@^1.4.9
+37
View File
@@ -0,0 +1,37 @@
#define BUTTON_PIN 39 // The middle button GPIO on the T-Beam
#define BATTERY_PIN 35 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define ADC_MULTIPLIER 2.0 // (R1 = 27k, R2 = 100k)
#define LED_PIN 33 // add status LED (compatible with core-pcb and DIY targets)
#define LORA_DIO0 RADIOLIB_NC // a No connect on the SX1262/SX1268 module
#define LORA_RESET 16 // RST for SX1276, and for SX1262/SX1268
#define LORA_DIO1 4 // IRQ for SX1262/SX1268
#define LORA_DIO2 26 // BUSY for SX1262/SX1268
#define LORA_DIO3 // Not connected on PCB, but internally on the TTGO SX1262/SX1268, if DIO3 is high the TXCO is enabled
#define RF95_SCK 18
#define RF95_MISO 19
#define RF95_MOSI 23
#define RF95_NSS 5
#define USE_SX1262
#define SX126X_CS 5 // NSS for SX126X
#define SX126X_DIO1 LORA_DIO1
#define SX126X_BUSY LORA_DIO2
#define SX126X_RESET LORA_RESET
#define SX126X_RXEN 25
#define SX126X_TXEN RADIOLIB_NC
#define SX126X_DIO2_AS_RF_SWITCH
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
#define USE_EINK
#define PIN_EINK_EN -1 // N/C
#define PIN_EINK_CS 15 // EPD_CS
#define PIN_EINK_BUSY 27 // EPD_BUSY
#define PIN_EINK_DC 12 // EPD_D/C
#define PIN_EINK_RES 32 // Connected but not needed
#define PIN_EINK_SCLK 14 // EPD_SCLK
#define PIN_EINK_MOSI 13 // GxEPD2_EPDEPD_MOSI