From 58d91f0a4b82197dea0d8be188eda36eed5c5af4 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Fri, 25 Mar 2022 00:18:14 +0000 Subject: [PATCH] Add battery pin to meshtastic-diy (#1319) * Add battery pin to meshtastic-diy * 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 d1724340e..f61b52e33 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 Plugin (#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