Initial release.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_53L1A1_mbed X_NUCLEO_53L1A1_mbed VL53L1X_Ranging_With_Standalone_Satellite_MbedOS X_NUCLEO_53L1A1
Diff: VL53L1X_Class.cpp
- Revision:
- 8:744e8b1b9837
- Parent:
- 7:6d3ab15363a2
diff -r 6d3ab15363a2 -r 744e8b1b9837 VL53L1X_Class.cpp
--- a/VL53L1X_Class.cpp Wed Jul 24 10:36:51 2019 +0000
+++ b/VL53L1X_Class.cpp Wed Jul 24 12:28:33 2019 +0000
@@ -67,21 +67,6 @@
return status;
}
-int VL53L1X::init_sensor(uint8_t new_addr)
-{
- Device->I2cDevAddr = new_addr;
- int status = 0;
- vl53l1_off();
- vl53l1_on();
-
- status = is_present();
- if (!status) {
- printf("Failed to init VL53L0X sensor!\n\r");
- return status;
- }
- return status;
-}
-
VL53L1X_ERROR VL53L1X::vl53l1x_sensor_init()
{