Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: GR-PEACH_TFTLCD_8bit
Fork of TFTLCD_8bit by
Diff: ili9328.cpp
- 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 )
