SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
AXP2101Led.hpp
Go to the documentation of this file.
1
31#pragma once
32#include "../../PmicLedBase.hpp"
33#include "AXP2101Core.hpp"
34
44class AXP2101Led : public PmicLedBase
45{
46public:
47 explicit AXP2101Led(AXP2101Core &core);
48 ~AXP2101Led() = default;
49
55 bool setOutputType(OutputType type) override;
56
62 bool setMode(Mode mode) override;
63
68 Mode getMode() override;
69
75 bool setManualState(ManualState state) override;
76
81 ManualState getManualState() override;
82
83private:
84 AXP2101Core &_core;
85};
@license MIT License
Core I2C communication layer for the AXP2101 PMIC.
Charging indicator LED control 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.
bool setMode(Mode mode) override
Set the LED operating mode.
ManualState getManualState() override
Get the current manual LED state.
~AXP2101Led()=default
ManualState
Manual LED state (portable subset).
Mode
High-level LED operating mode (portable subset).