Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Examples/pca9554.ino → examples/Blink/Blink.ino
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ void setup()
ioCon1.portMode(ALLOUTPUT); //Set the port as all output

// Can also set pins individually using
// ioCon1.pinmode(pin number, Input/Output);
// IE: ioCon1.pinmode(1, INPUT);
// ioCon1.pinMode(pin number, Input/Output);
// IE: ioCon1.pinMode(1, INPUT);
}


Expand Down Expand Up @@ -161,4 +161,10 @@ void loop()
ioCon1.digitalWritePort(~(1 << i));
delay(75);
}

// You can also read pins (if you set it's mode to INPUT in setup)
// byte x = 2; // read pin 2
// ioCon1.digitalRead(x);
// Serial.print("pin 2 value is ");
// Serial.println(x);
}
11 changes: 11 additions & 0 deletions library.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name=PCA9554
version=0.0.1
author=AD0ND <kd6oji@gmail.com>
maintainer=AD0ND <kd6oji@gmail.com>
sentence=PCA9554 8 bit I2C port expander arduino/esp library.
paragraph=
category=Communication
url=https://github.com/AD0ND/PCA9554
architectures=*
includes=PCA9554.h

File renamed without changes.
File renamed without changes.