17static constexpr uint8_t OUTPUT_PIN = 0;
18static constexpr uint8_t INPUT_PIN = 1;
28 Serial.println(
"Failed to find AW9523 - check your wiring and address pins!");
46 Serial.print(
"P0_1: ");
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 setPort0PushPull(bool pushPull)
Select the P0 GPIO output driver type.
bool enableInterrupt(uint8_t pin, bool enable=true)
Enable or disable input-change interrupt generation for one pin.
void digitalToggle(uint8_t pin)
Toggle the state of an output pin.
bool digitalRead(uint8_t pin)
Read the digital value from an input pin.
void pinMode(uint8_t pin, uint8_t mode)
Set the direction of a GPIO pin.