We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c1c99b + 710e767 commit 0fcba75Copy full SHA for 0fcba75
src/MCP23017.cpp
@@ -14,8 +14,11 @@ void MCP23017::init()
14
//SEQOP = 1 : sequential operation disabled, address pointer does not increment
15
//DISSLW = 0 : slew rate enabled
16
//HAEN = 0 : hardware address pin is always enabled on 23017
17
- //ODR = 0 : open drain output
+ //ODR = 0 : active driver output (INTPOL bit sets the polarity.)
18
+
19
//INTPOL = 0 : interrupt active low
20
+ //UNIMPLMENTED 0 : unimplemented: Read as ‘0’
21
22
writeRegister(MCP23017Register::IOCON, 0b00100000);
23
24
//enable all pull up resistors (will be effective for input pins only)
0 commit comments