From 362795a7c89fc3e9d57650a6084c636c22c3d58f Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 24 Mar 2022 19:20:15 -0500 Subject: [PATCH] Meshtastic-diy battery and adc multiplier --- variants/diy/v1/variant.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/variants/diy/v1/variant.h b/variants/diy/v1/variant.h index 2d2b195cf..3c0878cd1 100644 --- a/variants/diy/v1/variant.h +++ b/variants/diy/v1/variant.h @@ -9,6 +9,8 @@ //#define GPS_TX_PIN 12 // not connected #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_MULTIPLIER 1.85 // (R1 = 470k, R2 = 680k) #define EXT_NOTIFY_OUT 12 // Overridden default pin to use for Ext Notify Module (#975). #define LED_PIN 2 // add status LED (compatible with core-pcb and DIY targets) @@ -45,4 +47,4 @@ // Internally the TTGO module hooks the SX126x-DIO2 in to control the TX/RX switch // (which is the default for the sx1262interface code) #define SX126X_E22 -#endif \ No newline at end of file +#endif