Skip to content

Commit 52964bd

Browse files
authored
Merge pull request #27 from caternuson/iss26_scan
Add scan()
2 parents 65cce6e + 36ce547 commit 52964bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_tca9548a.py

+4
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)