32#include "../SensorBuildOpt.h"
33#if !SENSORLIB_EXCLUDE_AW9364
35#include "../expander/IoExpanderBase.hpp"
101 if (_brightness == value) {
116 if (_brightness == 0) {
137 for (
int i = 0;
i < num;
i++) {
188 digitalWrite(pin, value);
195 uint8_t _brightness = 0;
constexpr uint8_t MAX_BRIGHTNESS_STEPS
Maximum brightness steps (0‑16).
Controls LED brightness by generating a specific number of pulses on a GPIO pin.
void _digitalWrite(uint8_t pin, uint8_t value)
Internal helper to write digital value, handling both native and expander pins.
uint8_t getBrightness() const
Get the current brightness setting.
void setBrightness(uint8_t value)
Set the LED brightness level.
void _pinMode(uint8_t pin, uint8_t mode)
Internal helper to set pin mode, handling both native and expander pins.
void begin(IoExpanderBase &base, uint8_t pin)
Initialize the driver for use with a GPIO expander pin.
void begin(uint8_t pin)
Initialize the driver for use with a native Arduino pin.
Abstract base class for GPIO expander devices.
void pinMode(uint8_t pin, uint8_t mode)
Set the direction of a GPIO pin.
void digitalWrite(uint8_t pin, bool value)
Write a digital value to an output pin.