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 BNO055

Revision:
2:040a687cea93
Parent:
1:ac22f0f36d6b
Child:
3:4a3e169866a2
--- a/RA8875.h	Fri Sep 08 14:14:54 2017 +0000
+++ b/RA8875.h	Fri Sep 08 16:30:24 2017 +0000
@@ -26,7 +26,7 @@
 class Adafruit_RA8875 { // : public Adafruit_GFX {
  public:
   Adafruit_RA8875(PinName MOSI, PinName MISO, PinName SCLK,
-        PinName CS, PinName RST, Serial *pc=NULL);
+        PinName CS, PinName RST);
   
   bool begin(enum RA8875sizes s);
   void    softReset(void);
@@ -55,16 +55,16 @@
   /* HW accelerated wrapper functions (override Adafruit_GFX prototypes) */
   void    fillScreen(uint16_t color);
   void    drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color);
-//  void    drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
-//  void    fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
-//  void    drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
-//  void    fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
-//  void    drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color);
-//  void    fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color);
-//  void    drawEllipse(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint16_t color);
-//  void    fillEllipse(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint16_t color);
-//  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    drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
+  void    fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
+  void    drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
+  void    fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
+  void    drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color);
+  void    fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color);
+  void    drawEllipse(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint16_t color);
+  void    fillEllipse(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint16_t color);
+  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);
   
   /* Backlight */
   void    GPIOX(bool on);
@@ -116,7 +116,6 @@
   enum RA8875sizes _size;
 
   SPI spi;                        ///< spi port
-  Serial *pc;
 };
 
 // Colors (RGB565)