diff --git a/platformio.ini b/platformio.ini index 9e3b123db..fc94967b5 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,6 +10,7 @@ [platformio] ;default_envs = tbeam +;default_envs = tlora-v1.3 ;default_envs = tbeam0.7 ;default_envs = heltec ;default_envs = tlora-v1 @@ -149,6 +150,12 @@ board = ttgo-lora32-v1 build_flags = ${esp32_base.build_flags} -D TLORA_V1 +[env:tlora-v1.3] +extends = esp32_base +board = ttgo-lora32-v1 +build_flags = + ${esp32_base.build_flags} -D TLORA_V1_3 + ; note: the platformio definition for lora32-v2 seems stale, it is missing a pins_arduino.h file, therefore I don't think it works [env:tlora-v2] extends = esp32_base diff --git a/src/configuration.h b/src/configuration.h index 79d1009ca..267420878 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -309,6 +309,33 @@ along with this program. If not, see . #define LORA_DIO1 35 // Not really used #define LORA_DIO2 34 // Not really used +#elif defined(TLORA_V1_3) +// This string must exactly match the case used in release file names or the android updater won't work +#define HW_VENDOR "tlora-v1-3" + +#undef GPS_RX_PIN +#undef GPS_TX_PIN +#define GPS_RX_PIN 36 +#define GPS_TX_PIN 13 // per @eugene + +#define BATTERY_PIN 35 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage + +#define I2C_SDA 4 // I2C pins for this board +#define I2C_SCL 15 + +#define RESET_OLED 16 // If defined, this pin will be used to reset the display controller + +#define VEXT_ENABLE 21 // active low, powers the oled display and the lora antenna boost +#define LED_PIN 25 // If defined we will blink this LED +#define BUTTON_PIN 36 +#define BUTTON_NEED_PULLUP + +#define USE_RF95 +#define LORA_DIO0 26 // a No connect on the SX1262 module +#define LORA_RESET 14 +#define LORA_DIO1 35 // Not really used +#define LORA_DIO2 34 // Not really used + #elif defined(TLORA_V2_1_16) // This string must exactly match the case used in release file names or the android updater won't work #define HW_VENDOR "tlora-v2-1-1.6"