VL53L3 Shield specific functions.

Dependents:   53L3A2_Ranging X_NUCLEO_53L3CX

Revision:
2:81763ffd2222
Parent:
1:8afec488fa83
Child:
3:6747fdb48f95
diff -r 8afec488fa83 -r 81763ffd2222 NoShield53L3.h
--- a/NoShield53L3.h	Fri Oct 16 15:43:08 2020 +0000
+++ b/NoShield53L3.h	Wed Jul 14 15:07:09 2021 +0000
@@ -42,7 +42,7 @@
 /* Includes ------------------------------------------------------------------*/
 #include "mbed.h"
 #include "PinNames.h"
-#include <vl53lx_class.h>
+#include "vl53l3cx_class.h"
 //#include "Stmpe1600.h"
 //#include "DevI2C.h"
 #include "vl53L3_I2c.h"
@@ -66,9 +66,9 @@
     */
     NoShield53L3(vl53L3_DevI2C *ext_i2c) : dev_i2c(ext_i2c)
     {
-        sensor_centre = new VL53LX(ext_i2c, 0, A2);
-        sensor_left = new VL53LX(dev_i2c, 0, D8);
-        sensor_right = new VL53LX(dev_i2c, 0, D2);
+        sensor_centre = new VL53L3CX(ext_i2c, 0, A2);
+        sensor_left = new VL53L3CX(dev_i2c, 0, D8);
+        sensor_right = new VL53L3CX(dev_i2c, 0, D2);
     }  
     
     /** Constructor 2
@@ -83,9 +83,9 @@
     {
         printf("NoShield53L3 constructor %d %d %d %d\n",ext_i2c,gpio1_centre,gpio1_left,gpio1_right);
 
-        sensor_centre = new VL53LX(dev_i2c, 0, gpio1_centre);
-        sensor_left = new VL53LX(dev_i2c, 0, gpio1_left);
-        sensor_right = new VL53LX(dev_i2c, 0, gpio1_right);
+        sensor_centre = new VL53L3CX(dev_i2c, 0, gpio1_centre);
+        sensor_left = new VL53L3CX(dev_i2c, 0, gpio1_left);
+        sensor_right = new VL53L3CX(dev_i2c, 0, gpio1_right);
     }    
     
     
@@ -139,9 +139,9 @@
     int init_board(PinName shut_centre, PinName shut_left, PinName shut_right);
     
     vl53L3_DevI2C *dev_i2c;
-    VL53LX *sensor_centre;
-    VL53LX *sensor_left;
-    VL53LX *sensor_right;
+    VL53L3CX *sensor_centre;
+    VL53L3CX *sensor_left;
+    VL53L3CX *sensor_right;
     
 private:
     static NoShield53L3 *_instance;