Skip to content

Commit fb0eb83

Browse files
committed
vl53l1x: fix VL51L1X typo in default configuration variable name.
Closes #15
1 parent 79106a2 commit fb0eb83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/vl53l1x/vl53l1x/device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import machine
22

3-
VL51L1X_DEFAULT_CONFIGURATION = bytes(
3+
VL53L1X_DEFAULT_CONFIGURATION = bytes(
44
[
55
0x00, # 0x2d : set bit 2 and 5 to 1 for fast plus mode (1MHz I2C), else don't touch */
66
0x00, # 0x2e : bit 0 if I2C pulled up at 1.8V, else set bit 0 to 1 (pull up at AVDD) */
@@ -106,7 +106,7 @@ def __init__(self, i2c, address=0x29):
106106
if self.read_model_id() != 0xEACC:
107107
raise RuntimeError("Failed to find expected ID register values. Check wiring!")
108108
# write default configuration
109-
self.i2c.writeto_mem(self.address, 0x2D, VL51L1X_DEFAULT_CONFIGURATION, addrsize=16)
109+
self.i2c.writeto_mem(self.address, 0x2D, VL53L1X_DEFAULT_CONFIGURATION, addrsize=16)
110110
# machine.lightsleep(100)
111111
# the API triggers this change in VL53L1_init_and_start_range() once a
112112
# measurement is started; assumes MM1 and MM2 are disabled

0 commit comments

Comments
 (0)