19static constexpr uint8_t LED_PIN = 8;
29 Serial.println(
"Failed to find AW9523 - check your wiring and address pins!");
41 for (
int brightness = 0; brightness <= 255; ++brightness) {
45 for (
int brightness = 255; brightness >= 0; --brightness) {
IoExpanderAW9523 expander
bool begin(SensorCommCustom::CustomCallback callback, uint8_t addr)
Initialize the sensor using custom callback interface.
Driver for the AW9523/AW9523B 16-channel GPIO and LED controller.
bool setLedCurrentRange(LedCurrentRange range)
Set the global maximum current range for all LED channels.
bool setLedMode(uint8_t pin, bool enable=true)
Enable or disable constant-current LED mode on one pin.
bool analogWrite(uint8_t pin, uint8_t value)
Set one constant-current LED channel's brightness.