Skip to content

Commit 4c1c99b

Browse files
authored
Merge pull request #21 from cwverhey/patch-1
Update PortCopy.ino
2 parents 6196c96 + e2bd5b1 commit 4c1c99b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/PortCopy/PortCopy.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* On every loop, the state of the port B is copied to port A.
33
*
4-
* Use active low inputs on port A. Internal pullups are enabled by default by the library so there is no need for external resistors.
5-
* Place LEDS on port B for instance.
4+
* Use active low inputs on port B. Internal pullups are enabled by default by the library so there is no need for external resistors.
5+
* Place LEDS on port A for instance.
66
* When pressing a button, the corresponding led is shut down.
77
*
88
* You can also uncomment one line to invert the input (when pressing a button the corresponding led is lit)
@@ -35,4 +35,4 @@ void loop() {
3535

3636
currentB = mcp.readPort(MCP23017Port::B);
3737
mcp.writePort(MCP23017Port::A, currentB);
38-
}
38+
}

0 commit comments

Comments
 (0)