A modifiedversion of TFTLCD by Todor Todorov with ultra-fast operation for SSD1289 controller. TODO: speed-up fonts, add my own fonts Can work out-of-the-box with ST Nucleo F401RE
Dependents: TFT_320QVT_Window_Drag_Demo TFT_320QVT_HelloWorld
Fork of TFTLCD by
Diff: ssd1289.h
- Revision:
- 12:d0978272a340
- Parent:
- 10:69571adcfad5
- Child:
- 20:4bdca8d8dadc
diff -r aeceefc5f9f2 -r d0978272a340 ssd1289.h --- a/ssd1289.h Tue Dec 11 16:50:09 2012 +0000 +++ b/ssd1289.h Tue Dec 11 18:11:14 2012 +0000 @@ -103,8 +103,9 @@ * or produce garbage. * * \param oritentation The display orientation, landscape is default. + * \param colors The correct color depth to use for the pixel data. Value is disregarded. */ - virtual void Initialize( orientation_t orientation = LANDSCAPE ); + virtual void Initialize( orientation_t orientation = LANDSCAPE, colordepth_t colors = RGB16 ); /** Puts the display to sleep. * @@ -172,7 +173,7 @@ * order to account for different color depth used by the controller. * \param color The color of the pixel. */ - virtual void SetPixelColor( unsigned short color ); + virtual void SetPixelColor( unsigned int color ); private: DigitalOut _lcd_pin_wr;