Skip to content

Commit 39737a7

Browse files
committed
Added more comments to pinMode definition
1 parent 39fedf4 commit 39737a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/MCP23017.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ class MCP23017
9595
*
9696
* See "3.5.1 I/O Direction register".
9797
*
98-
* Beware! Mode here behave as the standard arduino pinMode :
98+
* Beware!
99+
* On Arduino platform, INPUT = 0, OUTPUT = 1, which is the inverse
100+
* of the MCP23017 definition where a pin is an input if its IODIR bit is set to 1.
101+
* This library pinMode function behaves like Arduino's standard pinMode for consistency.
99102
* [ OUTPUT | INPUT | INPUT_PULLUP ]
100103
*/
101104
void pinMode(uint8_t pin, uint8_t mode, bool inverted = false);

0 commit comments

Comments
 (0)