1.44 tft lcd display
Dependencies: TFT_fonts mbed-os
Fork of newTFTLCD by
Diff: st7735.cpp
- Revision:
- 15:af3cd35886fb
- Parent:
- 14:8efbe7361dae
- Child:
- 20:4bdca8d8dadc
--- a/st7735.cpp Tue Dec 11 20:52:22 2012 +0000 +++ b/st7735.cpp Tue Dec 11 23:42:47 2012 +0000 @@ -237,7 +237,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 );