Steffen Arntz / TFTLCD

Dependents:   UTFT_SSD1289

Fork of TFTLCD by Todor Todorov

Files at this revision

API Documentation at this revision

Comitter:
DooMMasteR
Date:
Tue Feb 16 19:09:15 2016 +0000
Parent:
27:26491d710e72
Commit message:
make size of the ST7735 variable, while not breaking old functionality;

Changed in this revision

st7735.cpp Show annotated file Show diff for this revision Revisions of this file
st7735.h Show annotated file Show diff for this revision Revisions of this file
--- a/st7735.cpp	Mon Jul 22 01:48:06 2013 +0000
+++ b/st7735.cpp	Tue Feb 16 19:09:15 2016 +0000
@@ -22,8 +22,8 @@
 #include "st7735.h"
 #include "helpers.h"
 
-ST7735_LCD::ST7735_LCD( PinName CS, PinName RESET, PinName RS, PinName SCL, PinName SDA, PinName BL, backlight_t blType, float defaultBackLightLevel )
-    : LCD( 128, 160, CS, RS, RESET, BL, blType, defaultBackLightLevel ), _lcd_pin_scl( SCL ), _lcd_pin_sda( SDA )
+ST7735_LCD::ST7735_LCD( PinName CS, PinName RESET, PinName RS, PinName SCL, PinName SDA, PinName BL, backlight_t blType, float defaultBackLightLevel, int width, int height)
+    : LCD( width, height, CS, RS, RESET, BL, blType, defaultBackLightLevel ), _lcd_pin_scl( SCL ), _lcd_pin_sda( SDA )
 {
 }
 
--- a/st7735.h	Mon Jul 22 01:48:06 2013 +0000
+++ b/st7735.h	Tue Feb 16 19:09:15 2016 +0000
@@ -88,7 +88,7 @@
      * \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, backlight_t blType = Constant, float defaultBackLightLevel = 1.0 );
+    ST7735_LCD( PinName CS, PinName RESET, PinName RS, PinName SCL, PinName SDA, PinName BL = NC, backlight_t blType = Constant, float defaultBackLightLevel = 1.0, int width = 128, int height = 160);
     
     /** Initialize display.
      *