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.
Fork of TFTLCD by
Diff: st7735.h
- Revision:
- 22:4c169297f374
- Parent:
- 20:4bdca8d8dadc
diff -r e5c1e8ffada1 -r 4c169297f374 st7735.h
--- a/st7735.h Sat Jan 26 02:55:46 2013 +0000
+++ b/st7735.h Sat Jan 26 04:36:46 2013 +0000
@@ -85,8 +85,10 @@
* \param SCL Pin for the serial clock line.
* \param SDA Pin for the serial data line.
* \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.
*/
- ST7735_LCD( PinName CS, PinName RESET, PinName RS, PinName SCL, PinName SDA, PinName BL = NC );
+ ST7735_LCD( PinName CS, PinName RESET, PinName RS, PinName SCL, PinName SDA, PinName BL = NC, backlight_t blType = Constant, float defaultBackLightLevel = 1.0 );
/** Initialize display.
*
