VL53L1X sensor class, for ARM Mbed platform. Based on Ultra-lite, Mass-market C Driver.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_53L1A1_mbed
Diff: vl53l1x_class.h
- Revision:
- 9:dcaa95b7b374
- Parent:
- 6:aa13392d16bb
diff -r aa13392d16bb -r dcaa95b7b374 vl53l1x_class.h --- a/vl53l1x_class.h Fri May 17 09:07:55 2019 +0000 +++ b/vl53l1x_class.h Tue May 11 09:35:17 2021 +0000 @@ -53,6 +53,9 @@ #include "vl53L1x_I2c.h" #include "Stmpe1600.h" +#if (MBED_VERSION > 60300) +extern "C" void wait_ms(int ms); +#endif #define VL53L1X_IMPLEMENTATION_VER_MAJOR 1 #define VL53L1X_IMPLEMENTATION_VER_MINOR 0 @@ -679,6 +682,13 @@ VL53L1_Dev_t MyDevice; VL53L1_DEV Device; }; - +/* +#if (MBED_VERSION > 60300) +extern "C" void wait_ms(int ms) +{ + thread_sleep_for(ms); +} +#endif +*/ #endif /* _VL53L1X_CLASS_H_ */