Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/vl53l1x/vl53l1x/device.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import machine

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