This is the SparkFun_VL53L1X_Arduino_Library translated into mbed, with some elements of Ian Kilburn's VL6180x mbed library.
Dependents: Hug2Go_ver_2 Nucleo_rtos_basic_f103rb
Diff: VL53L1X.h
- Revision:
- 6:621552ff1de9
- Parent:
- 5:aa8cc9e87216
diff -r aa8cc9e87216 -r 621552ff1de9 VL53L1X.h --- a/VL53L1X.h Fri Jul 27 18:43:58 2018 +0000 +++ b/VL53L1X.h Fri Jul 27 19:02:07 2018 +0000 @@ -12,7 +12,7 @@ class VL53L1X { public: VL53L1X(PinName SDA, PinName SCL); - void begin(); + bool begin(); void softReset(); //Reset the sensor via software void startMeasurement(uint8_t offset = 0); //Write a block of bytes to the sensor to configure it to take a measurement bool newDataReady(); //Polls the measurement completion bit