Hello,
I am using a boron in an environmental monitoring unit that’s power source is not a single cell LiPo battery, but is a sufficient enough power source.
I have noticed that the charging indicator LED is typically me that there is a charge fault condition or that the battery is disconnected.
I haven’t been able to find a way in software to disable that LED, but I have found two methods buried in the PMIC class called disableChargeFaultINT() and disableBATFaultINT() in the docs, but they have no description and when I include them in code they do not compile, as if they didn’t exist.
I tried addressing the register07 in the PMIC and changing the flags for the INT_MASK options, hoping it would disable the two blinking modes by the LED.
PMIC().begin();
PMIC().disableCharging();
//PMIC().disableChargeFaultINT();
//PMIC().disableBatFaultINT();
// 0b11001110 = disable watchdog
// 0b11000110 = disable watchdog and charge safety timer
byte DATA = PMIC().readChargeTermRegister();
DATA &= 0b11000110;
// This would be easier if pmic.writeRegister wasn't private (or disable
// charge safety timer had an exposed method
Wire1.begin();
Wire1.beginTransmission(PMIC_ADDRESS);
Wire1.write(CHARGE_TIMER_CONTROL_REGISTER);
Wire1.write(DATA);
Wire1.endTransmission(true);
//last two 0's in string disable INT_MASK[]
DATA &= 0b01001000;
Wire1.begin();
Wire1.beginTransmission(PMIC_ADDRESS);
Wire1.write(MISC_CONTROL_REGISTER);
Wire1.write(DATA);
Wire1.endTransmission(true);
Is this a valid approach to disabling the CHG LED in software or is it even worth investigating? Any help would be appreciated.