SPI based library for the ST7735 LCD controller.

Dependents:   RayCastingEngine RETRO_LCD_PerformanceTest RETRO_loop_test RETRO_RickGame ... more

Revision:
4:88d22437119c
Parent:
3:451148656b76
Child:
5:21c987ee68d2
--- a/LCD_ST7735.h	Sat Sep 20 19:09:16 2014 +0000
+++ b/LCD_ST7735.h	Sun Sep 21 07:01:15 2014 +0000
@@ -112,6 +112,15 @@
          * @param y1 The Y coordinate of the upper left corner
          * @param x2 The X coordinate of the lower right corner
          * @param y2 The Y coordinate of the lower right corner
+         * @param fillColor The color used to fill the rectangle
+        */
+        void fillRect(int x1, int y1, int x2, int y2, uint16_t fillColor);
+        
+        /** Draw a filled rectangle on the display 
+         * @param x1 The X coordinate of the upper left corner
+         * @param y1 The Y coordinate of the upper left corner
+         * @param x2 The X coordinate of the lower right corner
+         * @param y2 The Y coordinate of the lower right corner
          * @param borderColor The color used to draw the rectangle frame
          * @param fillColor The color used to fill the rectangle
         */
@@ -194,9 +203,10 @@
         void write(uint8_t cmd);        
         void write(uint8_t cmd, uint8_t data[], int dataLen);
         void write(uint8_t cmd, uint16_t data);        
-        void writeData(uint8_t data);
+        void writeData(uint8_t data);        
         void beginBatchCommand(uint8_t cmd);
         void writeBatchData(uint8_t data);
+        void writeBatchData(uint8_t dataHigh, uint8_t dataLow);
         void writeBatchData(uint16_t data);
         void endBatchCommand();
         
@@ -208,8 +218,10 @@
         int         _height;
         Orientation _orientation;
         bool        _flip; 
-        uint16_t    _foregroundColor;
-        uint16_t    _backgroundColor;
+        uint8_t    _foregroundColorHigh;
+        uint8_t    _foregroundColorLow;
+        uint8_t    _backgroundColorHigh;
+        uint8_t    _backgroundColorLow;
         
     private:        
         DigitalOut  _backlight;