From 2230cbbe2a9a9536bdfc2c0bf1d6c065a827cf6e Mon Sep 17 00:00:00 2001 From: co sto <10115135+costonisp@users.noreply.github.com> Date: Fri, 21 Jan 2022 03:47:30 +0100 Subject: [PATCH] Correction for wrong battery display on tlora_v2_1_16 board (#1120) * Update variant.h --- variants/tlora_v2_1_16/variant.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/variants/tlora_v2_1_16/variant.h b/variants/tlora_v2_1_16/variant.h index bc1bbc0277..1a888b46f9 100644 --- a/variants/tlora_v2_1_16/variant.h +++ b/variants/tlora_v2_1_16/variant.h @@ -4,6 +4,8 @@ #define GPS_TX_PIN 13 #define BATTERY_PIN 35 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage +// ratio of voltage divider = 2.0 (R42=100k, R43=100k) +#define ADC_MULTIPLIER 2.2 // 2.0 + 10% for correction of display undervoltage. #define I2C_SDA 21 // I2C pins for this board #define I2C_SCL 22 @@ -20,4 +22,4 @@ #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 \ No newline at end of file +#define LORA_DIO2 34 // Not really used