Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Check_VL53L0X_simple_with_three_ToF Check_VL53L0X_simple_ToF_Sensor Check_VL53L0X_simple_with_three_ToF Check_VL53L0X_simple_ToF_Sensor ... more
Fork of VL53L0X by
Diff: VL53L0X.h
- Revision:
- 9:b9907dc1e9f9
- Parent:
- 8:ac14de4512e8
- Child:
- 10:c9181a97a64f
--- a/VL53L0X.h Tue Feb 06 10:35:18 2018 +0000 +++ b/VL53L0X.h Mon Feb 24 11:21:39 2020 +0000 @@ -30,6 +30,7 @@ #define __VL53L0X_CLASS_H //------- Feburary 6th, 2018 by JH1PJL / K.Arai -------------------------------- +//------- Updated on Feburary 24th, 2020 --------------------------------------- //ORIGINAL=1 does NOT mean anything but just keep original source code as it is! //You can NOT compile with ORIGINAL=1 !! #define ORIGINAL 0 // Just keep = 0 @@ -103,8 +104,8 @@ #define WAIT_MS(x) wait_ms(x) #define VL53L0X_OsDelay(...) wait_ms(2) #elif (MBED_MAJOR_VERSION == 5) -#define WAIT_MS(x) Thread::wait(x) -#define VL53L0X_OsDelay(...) Thread::wait(2) +#define WAIT_MS(x) ThisThread::sleep_for(x) +#define VL53L0X_OsDelay(...) ThisThread::sleep_for(2) #else #warning "I cannot control wait_ms()!!" #endif
