Skip to content

Commit 39fedf4

Browse files
committed
Set polarities in PortCopyOnInterrupt example
1 parent 7ebbe68 commit 39fedf4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/PortCopyOnInterrupt/PortCopyOnInterrupt.ino

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ void setup() {
3030
mcp.interruptMode(MCP23017_INTMODE::SEPARATED);
3131
mcp.interrupt(MCP23017_PORT::B, FALLING);
3232

33+
mcp.writeRegister(MCP23017_REGISTER::IPOLA, 0x00);
34+
mcp.writeRegister(MCP23017_REGISTER::IPOLB, 0x00);
35+
3336
mcp.writeRegister(MCP23017_REGISTER::GPIOA, 0x00);
3437
mcp.writeRegister(MCP23017_REGISTER::GPIOB, 0x00);
3538

0 commit comments

Comments
 (0)