Files

19 lines
311 B
Arduino
Raw Permalink Normal View History

2026-03-31 13:17:21 +02:00
#include <PCA95x5.h>
PCA9555 ioex;
void setup() {
Serial.begin(115200);
delay(2000);
Wire.begin();
ioex.attach(Wire);
ioex.polarity(PCA95x5::Polarity::ORIGINAL_ALL);
ioex.direction(PCA95x5::Direction::IN_ALL);
}
void loop() {
Serial.println(ioex.read(), BIN);
delay(1000);
}