Initial release to ST Sw Expansion Team Repo.

Dependencies:   VL53L3CX_mbed

Dependents:   VL53L3CX_Shield_Polling VL53L3CX_Shield_Polling VL53L3CX_Shield_Polling_v5_15 VL53L3_shield_1sensor_polling_Mb515 ... more

Revision:
10:12c0dd3cba9b
Parent:
7:c0e18dd78c42
Child:
11:cccb5f470785
--- a/XNucleo53L3A2.h	Wed Nov 04 10:14:16 2020 +0000
+++ b/XNucleo53L3A2.h	Tue Nov 10 08:35:04 2020 +0000
@@ -42,9 +42,9 @@
 /* Includes ------------------------------------------------------------------*/
 #include "mbed.h"
 #include "PinNames.h"
-#include <vl53lx_class.h>
+
+#include "vl53l3_class.h"
 #include "Stmpe1600.h"
-//#include "DevI2C.h"
 #include "vl53L3_I2c.h"
 
 
@@ -81,13 +81,13 @@
         stmpe1600_exp1 = new Stmpe1600((DevI2C*)ext_i2c, (0x42 * 2));     // U19
 
         xshutdown_centre = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_15, (0x42 * 2));     // U19 on schematic
-        sensor_centre = new VL53LX(ext_i2c, xshutdown_centre, A2);
+        sensor_centre = new VL53L3(ext_i2c, xshutdown_centre, A2);
 
         xshutdown_left = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_14, (0x43 * 2));     // U21 on schematic
-        sensor_left = new VL53LX(dev_i2c, xshutdown_left, D8);
+        sensor_left = new VL53L3(dev_i2c, xshutdown_left, D8);
 
         xshutdown_right = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_15, (0x43 * 2));     // U21 on schematic
-        sensor_right = new VL53LX(dev_i2c, xshutdown_right, D2);
+        sensor_right = new VL53L3(dev_i2c, xshutdown_right, D2);
     }  
     
     /** Constructor 2
@@ -106,13 +106,13 @@
         printf("vl53L1X_DevI2C constructor %d %d %d %d\n",ext_i2c,gpio1_centre,gpio1_left,gpio1_right);
 
         xshutdown_centre = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_15, (0x42 * 2));     // U19 on schematic
-        sensor_centre = new VL53LX(dev_i2c, xshutdown_centre, gpio1_centre);
+        sensor_centre = new VL53L3(dev_i2c, xshutdown_centre, gpio1_centre);
 
         xshutdown_left = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_14, (0x43 * 2));     // U21 on schematic
-        sensor_left = new VL53LX(dev_i2c, xshutdown_left, gpio1_left);
+        sensor_left = new VL53L3(dev_i2c, xshutdown_left, gpio1_left);
 
         xshutdown_right = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_15, (0x43 * 2));     // U21 on schematic
-        sensor_right = new VL53LX(dev_i2c, xshutdown_right, gpio1_right);
+        sensor_right = new VL53L3(dev_i2c, xshutdown_right, gpio1_right);
     }    
     
     
@@ -179,9 +179,9 @@
     int init_board();
     
     vl53L3_DevI2C *dev_i2c;
-    VL53LX *sensor_centre;
-    VL53LX *sensor_left;
-    VL53LX *sensor_right;
+    VL53L3 *sensor_centre;
+    VL53L3 *sensor_left;
+    VL53L3 *sensor_right;
     Stmpe1600 *stmpe1600_exp0;
     Stmpe1600 *stmpe1600_exp1;
     Stmpe1600DigiOut *xshutdown_centre;