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: test SDCard capstone_display capstone_display_2 ... more
Revision 27:26491d710e72, committed 2013-07-22
- 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 )