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.

Revision:
31:f8e67a681560
Parent:
30:4c57a022a56c
--- 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