31#include "../../../SensorBuildOpt.h"
32#if !SENSORLIB_EXCLUDE_PMIC_AXP2101
88 default:
return false;
100 if ((val & 0x06) != 0x04) {
103 uint8_t code = (val >> 4) & 0x03;
Core I2C communication layer for the AXP2101 PMIC.
bool setOutputType(OutputType type) override
Set the LED output driver type.
bool setManualState(ManualState state) override
For manual mode, set the LED output state.
Mode getMode() override
Get the current LED operating mode.
AXP2101Led(AXP2101Core &core)
bool setMode(Mode mode) override
Set the LED operating mode.
ManualState getManualState() override
Get the current manual LED state.
ManualState
Manual LED state (portable subset).
Mode
High-level LED operating mode (portable subset).
@ VENDOR
Unknown/implementation-specific mode.
@ MANUAL
Manual control through registers.
@ AUTO
PMIC controls LED automatically (e.g.
@ DISABLE
LED is disabled (if supported).
int readReg(uint8_t reg) const
int updateBits(uint8_t reg, uint8_t mask, uint8_t value_shifted)
static constexpr uint8_t CHGLED_CFG