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.
BANK
1 parent e5d86da commit 2c3af9cCopy full SHA for 2c3af9c
adafruit_mcp230xx/mcp23017.py
@@ -259,8 +259,7 @@ def io_control(self):
259
260
@io_control.setter
261
def io_control(self, val):
262
- val |= 0b000001
263
- val ^= 0b000001
+ val &= ~0x80
264
self._write_u8(_MCP23017_IOCON, val)
265
266
@property
adafruit_mcp230xx/mcp23s17.py
@@ -263,8 +263,7 @@ def io_control(self):
267
268
self._write_u8(_MCP23S17_IOCON, val)
269
270
0 commit comments