Adafruit-GFX porting for mbed OS6. Needed to add #include "Stream.h" in beginning of the Adafruit_GFX.h
Dependents: ollin-ja-samin-hieno-ihmislaskin MCLAB10 OLEDrgb_MP OLEDrgb_MIC3_L432KC_OS6_hk McLab10_OLEDrgb_L432KC_OS60_tk2
Diff: Adafruit_GFX.h
- Revision:
- 1:c2715acb7466
- Parent:
- 0:3e9c32359703
- Child:
- 2:66a3fe0dc83a
diff -r 3e9c32359703 -r c2715acb7466 Adafruit_GFX.h --- a/Adafruit_GFX.h Fri May 23 15:05:48 2014 +0000 +++ b/Adafruit_GFX.h Sun May 25 13:40:59 2014 +0000 @@ -7,24 +7,27 @@ #endif #define swap(a, b) { int16_t t = a; a = b; b = t; } - +/** Adafruit_GFX class +* @bref This is the Adafruit_GFX class.\\ +* drawPixel(int16_t x,int16_t y,uint16_t color) needing implementation in derived implementation class +*/ class Adafruit_GFX : public Stream { public: Adafruit_GFX(int16_t w, int16_t h) : _rawWidth(w) - , _rawHeight(h) - , _width(w) - , _height(h) - , cursor_x(0) - , cursor_y(0) - , textcolor(WHITE) - , textbgcolor(BLACK) - , textsize(1) - , rotation(0) - , wrap(true) - {}; // Constructor + ,_rawHeight(h) + ,_width(w) + ,_height(h) + ,cursor_x(0) + ,cursor_y(0) + ,textcolor(WHITE) + ,textbgcolor(BLACK) + ,textsize(1) + ,rotation(0) + ,wrap(true) + {}; // This MUST be defined by the subclass: virtual void drawPixel(int16_t x, int16_t y, uint16_t color) = 0;