LCD Baseshield GSOE GSOF

Dependents:   WebserverGSOE_Schnaiter HC05__TI4_RP5_Schnaiter

Revision:
1:d6c8b9840a53
Parent:
0:0eebf803661c
Child:
2:96140687b227
diff -r 0eebf803661c -r d6c8b9840a53 LCD.cpp
--- a/LCD.cpp	Wed Mar 04 17:42:16 2020 +0000
+++ b/LCD.cpp	Wed Mar 04 18:29:59 2020 +0000
@@ -67,17 +67,17 @@
 {
     //Adresse=pAdresse<<1;
     uint8_t data[1];
-    for (Adresse=0;Adresse<256&&data[0]!=0x55;Adresse++)
+    for (Adresse=0;Adresse<255&&data[0]!=0x55;Adresse++)
     {
         i2c->write(Adresse,0x55);
         i2c->read(Adresse,data,1);
     }
     
-    thread_sleep_for(20);
+    wait_us(20000);
     sendeNippel(0b0011,0,0);
-    thread_sleep_for(5);
+    wait_us(5000);
     sendeNippel(0b0011,0,0);
-    thread_sleep_for(1);
+    wait_us(1000);
     sendeNippel(0b0011,0,0);
 
     sendeNippel(0b0010,0,0);