We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39fedf4 commit 39737a7Copy full SHA for 39737a7
src/MCP23017.h
@@ -95,7 +95,10 @@ class MCP23017
95
*
96
* See "3.5.1 I/O Direction register".
97
98
- * Beware! Mode here behave as the standard arduino pinMode :
+ * 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.
102
* [ OUTPUT | INPUT | INPUT_PULLUP ]
103
*/
104
void pinMode(uint8_t pin, uint8_t mode, bool inverted = false);
0 commit comments