From 2a8d54aad7678eb1f2ef7e71da5728cfb0f07896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BC=80=E6=99=BA?= Date: Mon, 11 Mar 2019 13:47:22 +0800 Subject: [PATCH] fixed class name VL53L0X => VL53L1X --- scripts/libraries/vl53l1x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/libraries/vl53l1x.py b/scripts/libraries/vl53l1x.py index df7f0d617..2d1614bc3 100644 --- a/scripts/libraries/vl53l1x.py +++ b/scripts/libraries/vl53l1x.py @@ -93,7 +93,7 @@ VL51L1X_DEFAULT_CONFIGURATION = bytes([ 0x01, # 0x86 : clear interrupt, use ClearInterrupt() */ 0x40 # 0x87 : start ranging, use StartRanging() or StopRanging(), If you want an automatic start after VL53L1X_init() call, put 0x40 in location 0x87 */ ]) -class VL53L0X: +class VL53L1X: def __init__(self,i2c, address=0x29): self.i2c = i2c self.address = address