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: hx8340bs.h
- Revision:
- 22:4c169297f374
- Parent:
- 20:4bdca8d8dadc
--- a/hx8340bs.h Sat Jan 26 02:55:46 2013 +0000 +++ b/hx8340bs.h Sat Jan 26 04:36:46 2013 +0000 @@ -84,8 +84,10 @@ * \param SCL Pin for the serial clock signal. * \param SDI Pin for the serial data signal. * \param BL Pin for controlling the backlight. By default not used. + * \param blType The backlight type, the default is to utilize the pin - if supplied - as a simple on/off switch + * \param defaultBacklightLevel If using PWM to control backlight, this would be the default brightness in percent after LCD initialization. */ - HX8340S_LCD( PinName CS, PinName RESET, PinName SCL, PinName SDI, PinName BL = NC ); + HX8340S_LCD( PinName CS, PinName RESET, PinName SCL, PinName SDI, PinName BL = NC, backlight_t blType = Constant, float defaultBackLightLevel = 1.0 ); /** Initialize display. * @@ -182,7 +184,6 @@ private: DigitalOut _lcd_pin_scl, _lcd_pin_sdi; - DigitalOut* _lcd_pin_bl; }; #ifdef __cplusplus