Library for 1.8 inch 160*180 TFT Display. Nice fonts in different formats.

Revision:
2:291ac9fb4d64
Parent:
1:6a6d8d2b19f1
--- a/ST7735.h	Sat Aug 15 11:59:03 2015 +0000
+++ b/ST7735.h	Sat Aug 22 11:25:19 2015 +0000
@@ -109,16 +109,19 @@
     * @param mosi Pin connected to data input 
     * @param sclk Pin connected to serial clock
     *
+    * Reset pin from LCD module is connected to reset pin microcontroller
     */
+    
     ST7735(PinName cePin, PinName dcPin, PinName mosiPin, PinName sclkPin);
-    
+
 private:
     void writecommand(char c);
     void writedata(char c); 
     void initSPI();
     void commonInit(const uint8_t *cmdList);
     void commandList(const uint8_t *addr);
-    
+    void pushColor(uint16_t color);  
+      
 public:
     uint8_t tabcolor;      
     uint8_t colstart, rowstart; // some displays need this changed
@@ -128,7 +131,6 @@
     void fillScreen(uint16_t color);
     void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
     void setAddrWindow(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1);
-    void pushColor(uint16_t color);  
     void invertDisplay(bool i);
     void drawPixel(int16_t x, int16_t y, uint16_t color);
     void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);