![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork of https://os.mbed.com/users/sebastiken/code/Adafruit_RA8875/ ; Adapted for use with K64F and in the process of adding more functions.
Diff: RA8875.h
- Revision:
- 2:040a687cea93
- Parent:
- 1:ac22f0f36d6b
- Child:
- 3:4a3e169866a2
diff -r ac22f0f36d6b -r 040a687cea93 RA8875.h --- 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)