Todor Todorov / TFTLCD

Dependents:   test SDCard capstone_display capstone_display_2 ... more

Files at this revision

API Documentation at this revision

Comitter:
ttodorov
Date:
Mon Jul 22 01:48:06 2013 +0000
Parent:
26:28f64fbcf7df
Commit message:
- fix sleep/wakeup of ILI9328 driver

Changed in this revision

ili9328.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ili9328.cpp	Sun Jun 16 03:36:07 2013 +0000
+++ b/ili9328.cpp	Mon Jul 22 01:48:06 2013 +0000
@@ -160,14 +160,20 @@
 
 void ILI9328_LCD::Sleep( void )
 {
-    WriteCmdData( 0x10, 0x0001 );//0x1692 ); // enter sleep mode
+    Activate();
+    WriteCmdData( 0x10, 0x1692 ); // enter sleep mode
+    wait_ms( 200 );
     LCD::Sleep();
+    Deactivate();
 }
 
 void ILI9328_LCD::WakeUp( void )
 {
-    WriteCmdData( 0x10, 0x0000 );//0x1690 ); // exit sleep mode
+    Activate();
+    WriteCmdData( 0x10, 0x1690 ); // exit sleep mode
+    wait_ms( 200 );
     LCD::WakeUp();
+    Deactivate();
 }
 
 void ILI9328_LCD::WriteCmd( unsigned short cmd )