4 #ifndef __M5_IP5306_CLASS_H__
5 #define __M5_IP5306_CLASS_H__
std::int8_t getBatteryLevel(void)
static constexpr std::uint8_t DEFAULT_ADDRESS
void setChargeVoltage(std::uint16_t max_mV)
void setBatteryCharge(bool enable)
void setChargeCurrent(std::uint16_t max_mA)
IP5306_Class(std::uint8_t i2c_addr=DEFAULT_ADDRESS, std::uint32_t freq=400000, I2C_Class *i2c=&In_I2C)
bool isCharging(void)
Get whether the battery is currently charging or not.
bool setPowerBoostKeepOn(bool en)
Set whether or not to continue supplying power even at low loads.
I2C_Class In_I2C
for internal I2C device