Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added LilyGo T3 V1.6.1 TCXO Version Support #3147

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ default_envs = tbeam
;default_envs = tlora_v1_3
;default_envs = tlora-v2
;default_envs = tlora-v2-1-1_6
; default_envs = tlora-v1-6-1-tcxo
;default_envs = tlora-t3s3-v1
;default_envs = lora-relay-v1 # nrf board
;default_envs = t-echo
Expand Down
5 changes: 3 additions & 2 deletions src/mesh/RadioLibRF95.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ int16_t RadioLibRF95::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_
RADIOLIB_ASSERT(state);

#ifdef RF95_TCXO
state = _mod->SPIsetRegValue(RADIOLIB_SX127X_REG_TCXO, 0x10 | _mod->SPIgetRegValue(RADIOLIB_SX127X_REG_TCXO));
RADIOLIB_ASSERT(state);
// There is no variant to use this, comment it out
// state = _mod->SPIsetRegValue(RADIOLIB_SX127X_REG_TCXO, 0x10 | _mod->SPIgetRegValue(RADIOLIB_SX127X_REG_TCXO));
// RADIOLIB_ASSERT(state);
#endif

// configure publicly accessible settings
Expand Down
2 changes: 2 additions & 0 deletions src/platform/esp32/architecture.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@
#define HW_VENDOR meshtastic_HardwareModel_HELTEC_HT62
#elif defined(CHATTER_2)
#define HW_VENDOR meshtastic_HardwareModel_CHATTER_2
#elif defined(TLORA_V1_6_1_TCXO)
#define HW_VENDOR meshtastic_HardwareModel_TLORA_V1_6_1_TCXO
#endif

// -----------------------------------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions variants/tlora_v1_6_1_tcxo/platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[env:tlora-v1-6-1-tcxo]
extends = esp32_base
board = ttgo-lora32-v21
build_flags =
${esp32_base.build_flags} -D TLORA_V1_6_1_TCXO -I variants/tlora_v1_6_1_tcxo
-DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
21 changes: 21 additions & 0 deletions variants/tlora_v1_6_1_tcxo/variant.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#define BATTERY_PIN 35
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define BATTERY_SENSE_SAMPLES 30

// ratio of voltage divider = 2.0 (R42=100k, R43=100k)
#define ADC_MULTIPLIER 2

#define I2C_SDA 21 // I2C pins for this board
#define I2C_SCL 22

#define LED_PIN 25 // If defined we will blink this LED
#define BUTTON_PIN 12 // If defined, this will be used for user button presses,

#define BUTTON_NEED_PULLUP

#define USE_RF95
#define LORA_DIO0 26
#define LORA_RESET 23
#define LORA_DIO1 RADIOLIB_NC // No connect on the SX1276 module
#define LORA_DIO2 32
#define RF95_TCXO 33 //TCXO Enable
Loading