Skip to content

Commit

Permalink
Merge pull request #21 from cwverhey/patch-1
Browse files Browse the repository at this point in the history
Update PortCopy.ino
  • Loading branch information
blemasle authored Jan 3, 2022
2 parents 6196c96 + e2bd5b1 commit 4c1c99b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/PortCopy/PortCopy.ino
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* On every loop, the state of the port B is copied to port A.
*
* Use active low inputs on port A. Internal pullups are enabled by default by the library so there is no need for external resistors.
* Place LEDS on port B for instance.
* Use active low inputs on port B. Internal pullups are enabled by default by the library so there is no need for external resistors.
* Place LEDS on port A for instance.
* When pressing a button, the corresponding led is shut down.
*
* You can also uncomment one line to invert the input (when pressing a button the corresponding led is lit)
Expand Down Expand Up @@ -35,4 +35,4 @@ void loop() {

currentB = mcp.readPort(MCP23017Port::B);
mcp.writePort(MCP23017Port::A, currentB);
}
}

0 comments on commit 4c1c99b

Please sign in to comment.