1.44 tft lcd display
Dependencies: TFT_fonts mbed-os
Fork of newTFTLCD by
Diff: ili9328.cpp
- Revision:
- 27:26491d710e72
- Parent:
- 26:28f64fbcf7df
diff -r 28f64fbcf7df -r 26491d710e72 ili9328.cpp --- 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 )