Skip to content

Commit eff8538

Browse files
committed
Date mod
1 parent ef5228a commit eff8538

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/vl53l1x_multiple_on_same_i2c_bus.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2021 wrdaigle for Adafruit Industries
1+
# SPDX-FileCopyrightText: 2022 wrdaigle for Adafruit Industries
22
#
33
# SPDX-License-Identifier: MIT
44

@@ -44,9 +44,7 @@
4444
# no need to change the address of the last VL53L1X sensor
4545
if i < len(xshut) - 1:
4646
# default address is 0x29. Change that to something else
47-
vl53[i].set_address(
48-
i + 0x30
49-
) # address assigned should NOT be already in use
47+
vl53[i].set_address(i + 0x30) # address assigned should NOT be already in use
5048
# there is a helpful list of pre-designated I2C addresses for various I2C devices at
5149
# https://learn.adafruit.com/i2c-addresses/the-list
5250
# According to this list 0x30-0x34 are available, although the list may be incomplete.

0 commit comments

Comments
 (0)