Skip to content
Closed
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 python/VL53L0X.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@

import time
from ctypes import *
import smbus
import smbus2

VL53L0X_GOOD_ACCURACY_MODE = 0 # Good Accuracy mode
VL53L0X_BETTER_ACCURACY_MODE = 1 # Better Accuracy mode
VL53L0X_BEST_ACCURACY_MODE = 2 # Best Accuracy mode
VL53L0X_LONG_RANGE_MODE = 3 # Longe Range mode
VL53L0X_HIGH_SPEED_MODE = 4 # High Speed mode

i2cbus = smbus.SMBus(1)
i2cbus = smbus2.SMBus(1)

# i2c bus read callback
def i2c_read(address, reg, data_p, length):
Expand Down