Skip to content

Commit 7f764c5

Browse files
authored
Updated example without passing i2c
1 parent 6fc9415 commit 7f764c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/vl53l1x_multiple_on_same_i2c_bus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
if i < len(xshut) - 1:
4646
# default address is 0x29. Change that to something else
4747
vl53[i].set_address(
48-
i2c, i + 0x30
48+
i + 0x30
4949
) # address assigned should NOT be already in use
5050
# there is a helpful list of pre-designated I2C addresses for various I2C devices at
5151
# https://learn.adafruit.com/i2c-addresses/the-list

0 commit comments

Comments
 (0)