Skip to content

Commit 36ce547

Browse files
committed
add scan
1 parent 65cce6e commit 36ce547

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
@@ -75,6 +75,10 @@ def writeto_then_readfrom(self, address, buffer_out, buffer_in, **kwargs):
7575
address, buffer_out, buffer_in, **kwargs
7676
)
7777

78+
def scan(self):
79+
"""Perform an I2C Device Scan"""
80+
return self.tca.i2c.scan()
81+
7882

7983
class TCA9548A:
8084
"""Class which provides interface to TCA9548A I2C multiplexer."""

0 commit comments

Comments
 (0)