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.
1 parent 2a9f7e2 commit 1834324Copy full SHA for 1834324
adafruit_tca9548a.py
@@ -143,12 +143,13 @@ class TCA9547D_Channel(TCA9548A_Channel):
143
behave like an I2CDevice."""
144
145
def __init__(self, tca: "TCA9547D", channel: int) -> None:
146
+ super().__init__(tca, channel)
147
self.tca = tca
148
"""
149
B3 enables/disables the mux. B2-B0 control which channel is used.
150
ref: https://www.nxp.com/docs/en/data-sheet/PCA9547.pdf
151
- self.channel_switch = (channel + (1<<3)).to_bytes(1, "little")
152
+ self.channel_switch = (channel + (1 << 3)).to_bytes(1, "little")
153
154
155
class TCA9547D(TCA9548A):
0 commit comments