Skip to content

Commit e876ca9

Browse files
authored
Update Adafruit_MCP23017.cpp
1 parent 2a939fc commit e876ca9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Adafruit_MCP23017.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ void Adafruit_MCP23017::begin(uint8_t addr, TwoWire *theWire) {
130130
writeRegister(MCP23017_IODIRB, 0xff);
131131

132132
// Turn off interrupt triggers
133-
writeRegister(MCP23017_GPINTENA, 0x0);
134-
writeRegister(MCP23017_GPINTENB, 0x0);
133+
writeRegister(MCP23017_GPINTENA, 0x00);
134+
writeRegister(MCP23017_GPINTENB, 0x00);
135135

136136
// Turn off pull up resistors
137-
writeRegister(MCP23017_GPPUA, 0x0);
138-
writeRegister(MCP23017_GPPUB, 0x0);
137+
writeRegister(MCP23017_GPPUA, 0x00);
138+
writeRegister(MCP23017_GPPUB, 0x00);
139139
}
140140

141141
/**

0 commit comments

Comments
 (0)