70 const uint8_t chip_address = XL9555_UNKNOWN_ADDRESS;
74 Serial.println(
"Failed to find XL9555 - check your wiring!");
85 Serial.print(
"PORT0:0b");
87 Serial.print(
"\tPORT1:0b");
91 Serial.println(
"IO0:\tIO1:\tIO2:\tIO3:\tIO4:\tIO5:\tIO6:\tIO7:\tIO8:\tIO9:\tIO10:\tIO11:\tIO12:\tIO13:\tIO14:\tIO15:\t");
bool begin(SensorCommCustom::CustomCallback callback, uint8_t addr)
Initialize the sensor using custom callback interface.
bool digitalRead(uint8_t pin)
Read the digital value from an input pin.
void configPins(uint16_t pinMask, uint8_t mode)
Configure multiple pins as input or output simultaneously.
Concrete driver for the XL9555 16‑bit I2C GPIO expander.
uint16_t digitalReadPort() override
Read the values of all 16 input pins as a single 16-bit word.
IoExpanderXL9555 expander