SPI based library for the ST7735 LCD controller.

Dependents:   RayCastingEngine RETRO_LCD_PerformanceTest RETRO_loop_test RETRO_RickGame ... more

Revision:
11:f86ce02e37cd
Parent:
10:2750b87877d9
Child:
13:a559617cdf94
--- a/LCD_ST7735.h	Wed Jan 21 01:31:23 2015 +0000
+++ b/LCD_ST7735.h	Thu Jan 22 01:53:06 2015 +0000
@@ -216,6 +216,9 @@
         void writeBatchData(uint16_t data);
         void endBatchCommand();
         
+        void clip(int x, int y, int w, int h);
+        void clipRect(int x1, int y1, int x2, int y2);
+        
     private:
         void drawVertLine(int x1, int y1, int y2, uint16_t color);
         void drawHorizLine(int x1, int y1, int x2, uint16_t color);
@@ -226,10 +229,7 @@
         
     private:
         void initDisplay();
-        void reset();
-        
-        void clip(int x, int y, int w, int h);
-        void clipRect(int x1, int y1, int x2, int y2);
+        void reset();        
         
     private:
         int         _width;
@@ -294,7 +294,7 @@
         DigitalOut  _cs;
         LCDSPI      _spi;
         
-    private:
+    protected:
         static const uint8_t CMD_SLPOUT     = 0x11;
         static const uint8_t CMD_DISPON     = 0x29;
         static const uint8_t CMD_CASET      = 0x2a;