Fork of https://os.mbed.com/users/sebastiken/code/Adafruit_RA8875/ ; Adapted for use with K64F and in the process of adding more functions.

Dependencies:   mbed

Revision:
3:4a3e169866a2
Parent:
2:040a687cea93
--- a/RA8875.h	Fri Sep 08 16:30:24 2017 +0000
+++ b/RA8875.h	Thu Mar 14 12:00:15 2019 +0000
@@ -40,6 +40,7 @@
   void    textTransparent(uint16_t foreColor);
   void    textEnlarge(uint8_t scale);
   void    textWrite(const char* buffer, uint16_t len=0);
+  void	  textWritePro(uint16_t x, uint16_t y, uint16_t foreColor, uint16_t bgColor, const char* buffer, uint16_t len=0);
 
   /* Graphics functions */
   void    graphicsMode(void);
@@ -66,6 +67,9 @@
   void    drawCurve(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint8_t curvePart, uint16_t color);
   void    fillCurve(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint8_t curvePart, uint16_t color);
   
+  void rectHelper  (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color, bool filled);
+  void Adafruit_RA8875::boxDraw(int16_t x, int16_t y, int16_t length, int16_t height, int16_t thick, uint16_t color, uint16_t fill);
+  
   /* Backlight */
   void    GPIOX(bool on);
   void    PWM1config(bool on, uint8_t clock);
@@ -105,7 +109,7 @@
   
 //  /* GFX Helper Functions */
   void circleHelper(int16_t x0, int16_t y0, int16_t r, uint16_t color, bool filled);
-  void rectHelper  (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color, bool filled);
+  
   void triangleHelper(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color, bool filled);
   void ellipseHelper(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint16_t color, bool filled);
   void curveHelper(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint8_t curvePart, uint16_t color, bool filled);
@@ -119,14 +123,16 @@
 };
 
 // Colors (RGB565)
-#define	RA8875_BLACK            0x0000
-#define	RA8875_BLUE             0x001F
-#define	RA8875_RED              0xF800
-#define	RA8875_GREEN            0x07E0
-#define RA8875_CYAN             0x07FF
-#define RA8875_MAGENTA          0xF81F
-#define RA8875_YELLOW           0xFFE0  
-#define RA8875_WHITE            0xFFFF
+#define	BLACK            		0x0000
+#define	BLUE             		0x001F
+#define	RED              		0xF800
+#define	GREEN            		0x07E0
+#define CYAN             		0x07FF
+#define MAGENTA          		0xF81F
+#define YELLOW           		0xFFE0  
+#define WHITE            		0xFFFF
+#define GREY					0xA514
+#define ORANGE					0xFA20
 
 // Command/Data pins for SPI
 #define RA8875_DATAWRITE        0x00