From 86888844c897e493f8402c7e8628a4660e325ab1 Mon Sep 17 00:00:00 2001 From: lewishe Date: Tue, 13 Jun 2023 11:12:00 +0800 Subject: [PATCH] Renewal setting charging current about 100mA --- src/LilyGoLib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LilyGoLib.cpp b/src/LilyGoLib.cpp index 8cd4bb0..32ef1cb 100644 --- a/src/LilyGoLib.cpp +++ b/src/LilyGoLib.cpp @@ -330,7 +330,7 @@ bool LilyGoLib::beginPower() // Set the maximum current of the PMU VBUS input, // higher than this value will turn off the PMU - setVbusCurrentLimit(XPOWERS_AXP2101_VBUS_CUR_LIM_1500MA); + setVbusCurrentLimit(XPOWERS_AXP2101_VBUS_CUR_LIM_100MA); // Set VSY off voltage as 2600mV , Adjustment range 2600mV ~ 3300mV setSysPowerDownVoltage(2600); @@ -437,12 +437,12 @@ bool LilyGoLib::beginPower() // Set the precharge charging current setPrechargeCurr(XPOWERS_AXP2101_PRECHARGE_50MA); // Set constant current charge current limit - setChargerConstantCurr(XPOWERS_AXP2101_CHG_CUR_125MA); + setChargerConstantCurr(XPOWERS_AXP2101_CHG_CUR_100MA); // Set stop charging termination current setChargerTerminationCurr(XPOWERS_AXP2101_CHG_ITERM_25MA); // Set charge cut-off voltage - setChargeTargetVoltage(XPOWERS_AXP2101_CHG_VOL_4V2); + setChargeTargetVoltage(XPOWERS_AXP2101_CHG_VOL_4V35); enableButtonBatteryCharge(); #else