Skip to content

Commit 2f0597b

Browse files
authored
Add disableInterruptPin
1 parent 32cc4eb commit 2f0597b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Adafruit_MCP23017.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,17 @@ void Adafruit_MCP23017::setupInterruptPin(uint8_t pin, uint8_t mode) {
295295
updateRegisterBit(pin, HIGH, MCP23017_GPINTENA, MCP23017_GPINTENB);
296296
}
297297

298+
/**
299+
* Disable a pin for interrupt.
300+
*
301+
* @param pin Pin to set
302+
*
303+
*/
304+
void Adafruit_MCP23017::disableInterruptPin(uint8_t pin) {
305+
// disable the pin for interrupt
306+
updateRegisterBit(pin, LOW, MCP23017_GPINTENA, MCP23017_GPINTENB);
307+
}
308+
298309
/*!
299310
* @brief Gets the last interrupt pin
300311
* @return Returns the last interrupt pin

0 commit comments

Comments
 (0)