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: LPC1114_data_logger RTC_w_COM Frequency_Counter_w_GPS_1PPS CW_Decoder_using_FFT_on_F446 ... more
Fork of TextLCD by
Revision 31:f8e67a681560, committed 2020-08-04
- Comitter:
- kenjiArai
- Date:
- Tue Aug 04 03:55:44 2020 +0000
- Parent:
- 30:4c57a022a56c
- Commit message:
- added #include "Stream.h" (need to run on mbed-os6.2.0)
Changed in this revision
| TextLCD.h | Show annotated file Show diff for this revision Revisions of this file |
| TextLCD_UDC.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TextLCD.h Mon Feb 24 10:47:12 2020 +0000 +++ b/TextLCD.h Tue Aug 04 03:55:44 2020 +0000 @@ -50,14 +50,14 @@ #include "mbed.h" #include "TextLCD_Config.h" #include "TextLCD_UDC.h" +// modified by by JH1PJL +#include "Stream.h" // Aug. 4th, 2020, need to run on mbed-os6 //// modified by by JH1PJL #if (MBED_MAJOR_VERSION == 2) #define WAIT_MS(x) wait_ms(x) -#define VL53L0X_OsDelay(...) wait_ms(2) -#elif (MBED_MAJOR_VERSION == 5) -#define WAIT_MS(x) ThisThread::sleep_for(x) -#define VL53L0X_OsDelay(...) ThisThread::sleep_for(2) +#elif (MBED_MAJOR_VERSION == 5) || (MBED_MAJOR_VERSION == 6) +#define WAIT_MS(x) thread_sleep_for(x) #else #warning "I cannot control wait_ms()!!" #endif
--- a/TextLCD_UDC.h Mon Feb 24 10:47:12 2020 +0000 +++ b/TextLCD_UDC.h Tue Aug 04 03:55:44 2020 +0000 @@ -54,10 +54,8 @@ //// modified by by JH1PJL #if (MBED_MAJOR_VERSION == 2) #define WAIT_MS(x) wait_ms(x) -#define VL53L0X_OsDelay(...) wait_ms(2) -#elif (MBED_MAJOR_VERSION == 5) +#elif (MBED_MAJOR_VERSION == 5) || (MBED_MAJOR_VERSION == 6) #define WAIT_MS(x) ThisThread::sleep_for(x) -#define VL53L0X_OsDelay(...) ThisThread::sleep_for(2) #else #warning "I cannot control wait_ms()!!" #endif
