Skip to content

Commit 2876fda

Browse files
committed
Actually use i2c_bus parameter
1 parent c711604 commit 2876fda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/VL53L1X.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, i2c_bus=1, i2c_address=0x29, tca9548a_num=255, tca9548a_addr=
7575
self.i2c_address = i2c_address
7676
self._tca9548a_num = tca9548a_num
7777
self._tca9548a_addr = tca9548a_addr
78-
self._i2c = SMBus(1)
78+
self._i2c = SMBus(i2c_bus)
7979
self._dev = None
8080
# Resgiter Address
8181
self.ADDR_UNIT_ID_HIGH = 0x16 # Serial number high byte

0 commit comments

Comments
 (0)