![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
1.44 tft lcd display
Dependencies: TFT_fonts mbed-os
Fork of newTFTLCD by
Diff: hx8340bs.cpp
- Revision:
- 15:af3cd35886fb
- Parent:
- 12:d0978272a340
- Child:
- 20:4bdca8d8dadc
diff -r 8efbe7361dae -r af3cd35886fb hx8340bs.cpp --- 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 );