ST7735 library, e.g. for Adafruit 1.8" TFT

Fork of ST7735_TFT by Jonne Valola

Fixed a few compiler warning and also some errors that were showing on my STM-F3 device.

Revision:
2:264c52bc760c
Parent:
0:246f2fb5be59
diff -r 967235e6fd48 -r 264c52bc760c ST7735_TFT.h
--- a/ST7735_TFT.h	Sun Dec 11 21:18:21 2011 +0000
+++ b/ST7735_TFT.h	Tue Aug 19 19:58:08 2014 +0000
@@ -104,7 +104,7 @@
    * @param reset pin connected to RESET of display
    *
    */ 
-  ST7735_TFT(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName rs, PinName reset,const char* name ="TFT");
+  ST7735_TFT(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName rs, PinName reset, const char* name ="TFT");
     
   /** Get the width of the screen in pixel
    *
@@ -190,7 +190,7 @@
    * @param x x-position (top left)
    * @param y y-position 
    */   
-  void locate(int x, int y);
+  void virtual locate(int x, int y);
     
   /** Fill the screen with _backgroun color
    *
@@ -203,7 +203,7 @@
    * depends on actual font size
    *
    */    
-  int columns(void);
+  virtual int columns(void);
     
   /** calculate the max number of columns
    *
@@ -211,7 +211,7 @@
    * depends on actual font size
    *
    */   
-  int rows(void);
+  virtual int rows(void);
     
   /** put a char on the screen
    *
@@ -219,7 +219,7 @@
    * @returns printed char
    *
    */
-  int _putc(int value);
+  virtual int _putc(int value);
     
   /** draw a character on given position out of the active font to the TFT
    *
@@ -337,7 +337,7 @@
    * @param w window width in pixel
    * @param h window height in pixels
    */    
-  void window (unsigned int x, unsigned int y, unsigned int w, unsigned int h);
+  virtual void window (int x, int y, int w, int h);
     
   /** Set draw window region to whole screen
    *