Skip to content

Commit c662ff9

Browse files
committed
add probe method
1 parent 0c8bf95 commit c662ff9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_tca9548a.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def scan(self) -> List[int]:
9898
"""Perform an I2C Device Scan"""
9999
return self.tca.i2c.scan()
100100

101+
def probe(self, address: int) -> bool:
102+
"""Check if an I2C device is at the specified address on the hub."""
103+
return self.tca.i2c.probe(address)
104+
101105

102106
class TCA9548A:
103107
"""Class which provides interface to TCA9548A I2C multiplexer."""

0 commit comments

Comments
 (0)