mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-04 04:40:50 +00:00
modify charge voltage and current
This commit is contained in:
parent
47f9cc3a9a
commit
5dc13041d4
@ -1276,13 +1276,13 @@ class LipoCharger : public HasBatteryLevel
|
|||||||
ppm->setSysPowerDownVoltage(3100);
|
ppm->setSysPowerDownVoltage(3100);
|
||||||
|
|
||||||
// Set input current limit, default is 500mA
|
// Set input current limit, default is 500mA
|
||||||
ppm->setInputCurrentLimit(3250);
|
ppm->setInputCurrentLimit(800);
|
||||||
|
|
||||||
// Disable current limit pin
|
// Disable current limit pin
|
||||||
ppm->disableCurrentLimitPin();
|
ppm->disableCurrentLimitPin();
|
||||||
|
|
||||||
// Set the charging target voltage, Range:3840 ~ 4608mV ,step:16 mV
|
// Set the charging target voltage, Range:3840 ~ 4608mV ,step:16 mV
|
||||||
ppm->setChargeTargetVoltage(4208);
|
ppm->setChargeTargetVoltage(4288);
|
||||||
|
|
||||||
// Set the precharge current , Range: 64mA ~ 1024mA ,step:64mA
|
// Set the precharge current , Range: 64mA ~ 1024mA ,step:64mA
|
||||||
ppm->setPrechargeCurr(64);
|
ppm->setPrechargeCurr(64);
|
||||||
|
Loading…
Reference in New Issue
Block a user