Skip to content

Commit 8f50b94

Browse files
committed
Add documentation on BANK bit ignored if being set to 1.
1 parent 2c3af9c commit 8f50b94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adafruit_mcp230xx/mcp23017.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def io_control(self):
253253
Bit 4 is whether SDA slew rate is enabled (1 = yes). Bit 5 is if I2C
254254
address pointer auto-increments (1 = no). Bit 6 is whether interrupt
255255
pins are internally connected (1 = yes). Bit 7 is whether registers
256-
are all in one bank (1 = no).
256+
are all in one bank (1 = no), this is silently ignored if set to `1`.
257257
"""
258258
return self._read_u8(_MCP23017_IOCON)
259259

adafruit_mcp230xx/mcp23s17.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def io_control(self):
257257
Bit 4 is whether SDA slew rate is enabled (1 = yes). Bit 5 is if SPI
258258
address pointer auto-increments (1 = no). Bit 6 is whether interrupt
259259
pins are internally connected (1 = yes). Bit 7 is whether registers
260-
are all in one bank (1 = no).
260+
are all in one bank (1 = no), this is silently ignored if set to `1`.
261261
"""
262262
return self._read_u8(_MCP23S17_IOCON)
263263

0 commit comments

Comments
 (0)