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: hx8340bs.cpp
- Revision:
- 15:af3cd35886fb
- Parent:
- 12:d0978272a340
- Child:
- 20:4bdca8d8dadc
--- a/hx8340bs.cpp Tue Dec 11 20:52:22 2012 +0000
+++ b/hx8340bs.cpp Tue Dec 11 23:42:47 2012 +0000
@@ -197,7 +197,7 @@
unsigned short clr = ( ( ( ( r ) & 0xF8 ) | ( ( g ) >> 5 ) ) << 8 ) | ( ( ( ( g ) & 0x1C ) << 3 ) | ( ( b ) >> 3 ) );
WriteData( clr );
}
- else
+ else if ( _colorDepth == RGB18 )
{
WriteByteData( r & 0xFC );
WriteByteData( g & 0xFC );
