This is a port of Henning Kralsen's UTFT library for Arduino/chipKIT to mbed, refactored to make full use of C inheritance and access control, in order to reduce work when implementing new drivers and at the same time make the code more readable and easier to maintain. As of now supported are SSD1289 (16-bit interface), HX8340-B (serial interface) and ST7735 (serial interface). Drivers for other controllers will be added as time and resources to acquire the displays to test the code permit.

Dependents:   UTFT_SSD1289

Fork of TFTLCD by Todor Todorov

Revision:
27:26491d710e72
Parent:
26:28f64fbcf7df
--- 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 )