SPI based library for the ST7735 LCD controller.

Dependents:   RayCastingEngine RETRO_LCD_PerformanceTest RETRO_loop_test RETRO_RickGame ... more

Revision:
1:33ff5fad4320
Parent:
0:7b3fb3085867
Child:
3:451148656b76
--- a/LCD_ST7735.h	Fri Sep 19 02:43:29 2014 +0000
+++ b/LCD_ST7735.h	Sat Sep 20 04:28:41 2014 +0000
@@ -72,6 +72,15 @@
         */
         void drawCircle(int x, int y, int r, uint16_t color);
         
+        /** Draw an ellipse on the display
+         * @param x The X coordinate of the center of the ellipse
+         * @param y The Y coordinate of the center of the ellipse
+         * @param rx The X radius of the ellipse
+         * @param ry The X radius of the ellipse
+         * @param color The color used to draw the ellipse
+        */
+        void drawEllipse(int x, int y, int rx, int ry, uint16_t color);
+        
         /** 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
@@ -90,6 +99,16 @@
         */
         void fillCircle(int x, int y, int r, uint16_t borderColor, uint16_t fillColor);
         
+        /** Draw a filled ellipse on the display
+         * @param x The X coordinate of the center of the ellipse
+         * @param y The Y coordinate of the center of the ellipse
+         * @param rx The X radius of the ellipse
+         * @param ry The X radius of the ellipse
+         * @param borderColor The color used to draw the circumference of the circle
+         * @param fillColor The color used to fill the circle
+        */
+        void fillEllipse(int x, int y, int rx, int ry, uint16_t borderColor, uint16_t fillColor);
+        
         /** Draw a bitmap on the screen 
          * @param x The X coordinate location to draw the bitmap.
          * @param y The Y coordinate location to draw the bitmap.
@@ -100,6 +119,20 @@
         */
         void drawBitmap(int x, int y, const uint16_t *pbmp);
         
+        /** Extracts a portion of a bitmap and draws it on the screen 
+         * @param x The X coordinate location to draw the bitmap.
+         * @param y The Y coordinate location to draw the bitmap.
+         * @param pbmp Pointer to the bitmap.
+         * @param srcX X offset into the source bitmap of the portion to extract
+         * @param srcY Y offset into the source bitmap of the portion to extract
+         * @param srcWidth Width of the bitmap portion to draw
+         * @param srcHeight Height of the bitmap portion to draw
+         * @note The bitmap is an single dimensional uint8_t (unsigned short) array. 
+         * The first to elements of the array indicate the width and height of the bitmap repectively.
+         * The rest of the entries int the array make up the pixel data for the array.
+        */
+        void drawBitmap(int x, int y, const uint16_t *pbmp, int srcX, int srcY, int srcWidth, int srcHeight);
+        
         /** Set the foreground color used to render text
          * @param color Color used when drawing text to the display
          * @note The color can be changed multiple times to render text in various colors on the display