Fork of C12832_lcd, for updating sleep functions per api docs

Files at this revision

API Documentation at this revision

Comitter:
ase1590
Date:
Mon Nov 15 17:23:11 2021 +0000
Parent:
10:8f86576007d6
Commit message:
swap wait() and wait_ms() out due to deprecation/removal. Use the latest suggested functions as suggested by the MBED wait_api functions documentation.

Changed in this revision

C12832_lcd.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/C12832_lcd.cpp	Sun Oct 27 23:16:07 2013 +0000
+++ b/C12832_lcd.cpp	Mon Nov 15 17:23:11 2021 +0000
@@ -139,7 +139,7 @@
     _reset = 0;                        // display reset
     wait_us(50);
     _reset = 1;                       // end reset
-    wait_ms(5);
+    thread_sleep_for(5);
 
     /* Start Initial Sequence ----------------------------------------------------*/
 
@@ -172,8 +172,7 @@
     memset(buffer,0x00,512);  // clear display buffer
     copy_to_lcd();
     auto_up = 1;              // switch on auto update
-    // dont do this by default. Make the user call
-    //claim(stdout);           // redirekt printf to lcd
+    claim(stdout);           // redirekt printf to lcd
     locate(0,0);
     set_font((unsigned char*)Small_7);  // standart font
 }