Version 2.1 of TextLCD_SB1602E (forked).

Dependents:   BME280_environmental_recorder kids_workshop

Fork of SB1602E by Tedd OKANO

Revision:
3:c4216ef28143
Parent:
2:baf578069dfc
Child:
4:f2fb19e5486f
--- a/SB1602E.cpp	Tue Apr 07 05:03:44 2015 +0000
+++ b/SB1602E.cpp	Fri Jan 29 15:00:47 2016 +0000
@@ -150,7 +150,8 @@
 void SB1602E::clear( void )
 {
     lcd_command( Comm_ClearDisplay );
-    wait( 2e-3 );
+    //wait( 2e-3 );
+    wait_ms(2);
     curs[ 0 ]    = 0;
     curs[ 1 ]    = 0;
 }
@@ -208,7 +209,9 @@
 
 int SB1602E::lcd_command( char command )
 {
-    return ( lcd_write( COMMAND, command ) );
+    int ret = lcd_write( COMMAND, command );
+    wait_us(30);
+    return ( ret );
 }
 
 int SB1602E::lcd_data( char data )