Library for the NucleoVl53L1 shield and the Vl53L1
Dependencies: VL53L1
Dependents: VL53L1CB_shield_sensor_polling VL53L1CB_MB2_NoShield_3sensors_interrupt_ranging VL53L1CB_MB5_NoShield_3sensors_interrupt_ranging VL53L1CB_MB5_NoShield_3sensors_interrupt_ranging
Diff: XNucleo53L1A2.h
- Revision:
- 5:25be5ff92db5
- Parent:
- 4:924dac74daed
- Child:
- 6:070884954aae
diff -r 924dac74daed -r 25be5ff92db5 XNucleo53L1A2.h --- a/XNucleo53L1A2.h Mon Nov 09 10:25:21 2020 +0000 +++ b/XNucleo53L1A2.h Mon Nov 09 17:09:15 2020 +0000 @@ -1,10 +1,10 @@ /** ****************************************************************************** - * @file XNucleo53L1A2.h + * @file XNucleo53L1.h * @author JS * @version V0.0.1 * @date 15-January-2019 - * @brief Header file for component XNucleo53L1A1 + * @brief Header file for component XNucleo53L1 ****************************************************************************** * @attention * @@ -40,7 +40,7 @@ /* Includes ------------------------------------------------------------------*/ -#include "vl53l1x.h" +#include "vl53l1.h" #include "Stmpe1600.h" //#include "DevI2C.h" #include "ToF_I2C.h" @@ -73,13 +73,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 VL53L1X(dev_i2c, xshutdown_centre, A2); + sensor_centre = new VL53L1(dev_i2c, xshutdown_centre, A2); xshutdown_left = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_14, (0x43 * 2)); // U21 on schematic - sensor_left = new VL53L1X(dev_i2c, xshutdown_left, D8); + sensor_left = new VL53L1(dev_i2c, xshutdown_left, D8); xshutdown_right = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_15, (0x43 * 2)); // U21 on schematic - sensor_right = new VL53L1X(dev_i2c, xshutdown_right, D2); + sensor_right = new VL53L1(dev_i2c, xshutdown_right, D2); } /** Constructor 2 @@ -98,13 +98,13 @@ // printf("ToF_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 VL53L1X(dev_i2c, xshutdown_centre, gpio1_centre); + sensor_centre = new VL53L1(dev_i2c, xshutdown_centre, gpio1_centre); xshutdown_left = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_14, (0x43 * 2)); // U21 on schematic - sensor_left = new VL53L1X(dev_i2c, xshutdown_left, gpio1_left); + sensor_left = new VL53L1(dev_i2c, xshutdown_left, gpio1_left); xshutdown_right = new Stmpe1600DigiOut((DevI2C*)dev_i2c, GPIO_15, (0x43 * 2)); // U21 on schematic - sensor_right = new VL53L1X(dev_i2c, xshutdown_right, gpio1_right); + sensor_right = new VL53L1(dev_i2c, xshutdown_right, gpio1_right); } @@ -171,9 +171,9 @@ int init_board(); ToF_DevI2C *dev_i2c; - VL53L1X *sensor_centre; - VL53L1X *sensor_left; - VL53L1X *sensor_right; + VL53L1 *sensor_centre; + VL53L1 *sensor_left; + VL53L1 *sensor_right; Stmpe1600 *stmpe1600_exp0; Stmpe1600 *stmpe1600_exp1; Stmpe1600DigiOut *xshutdown_centre;