In TextLCD_I2C_N Class, added void setContrast(unsigned char c) function as temporary. This is for ST7032i non-volume type contrast control.

Dependents:   LPC1114_data_logger RTC_w_COM Frequency_Counter_w_GPS_1PPS CW_Decoder_using_FFT_on_F446 ... more

Fork of TextLCD by Wim Huiskamp

In TextLCD_I2C_N Class, added void setContrast(unsigned char c) function as temporary.

Files at this revision

API Documentation at this revision

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
diff -r 4c57a022a56c -r f8e67a681560 TextLCD.h
--- 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
diff -r 4c57a022a56c -r f8e67a681560 TextLCD_UDC.h
--- 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