i2c version has an offset due to wrong copy of temp buffer to display buffer, fixed in Adafruit_SSD1306.h
Dependents: ezSBC_MPU9250 Test_OLED_Display untodoenuno OledI2CDisplay ... more
Fork of Adafruit_GFX by
Revision 23:0b35bb153799, committed 2017-07-24
- Comitter:
- JojoS
- Date:
- Mon Jul 24 19:44:33 2017 +0000
- Parent:
- 22:818c271c30fa
- Commit message:
- reversed use Stream logic: default is using Stream for compatibility
Changed in this revision
Adafruit_GFX.h | Show annotated file Show diff for this revision Revisions of this file |
Adafruit_GFX_Config.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 818c271c30fa -r 0b35bb153799 Adafruit_GFX.h --- a/Adafruit_GFX.h Mon Jul 24 21:32:55 2017 +0200 +++ b/Adafruit_GFX.h Mon Jul 24 19:44:33 2017 +0000 @@ -44,12 +44,15 @@ * Display drivers should be derived from here. * The Display drivers push the display buffer to the * hardware based on application control. - * + + * JojoS: added option to not derive from Stream + * this saves about 10k of code size for small targes + * without Stream class, printf must be replaced by writeChar(ch) */ -#if defined(USE_IOSTREAM) +#if defined(USE_NO_IOSTREAM) +class Adafruit_GFX +#else class Adafruit_GFX : public Stream -#else -class Adafruit_GFX #endif { public:
diff -r 818c271c30fa -r 0b35bb153799 Adafruit_GFX_Config.h --- a/Adafruit_GFX_Config.h Mon Jul 24 21:32:55 2017 +0200 +++ b/Adafruit_GFX_Config.h Mon Jul 24 19:44:33 2017 +0000 @@ -10,7 +10,7 @@ // USE_IOSTREAM : GFX is derived from class stream // adds printf, but costs about 10 kB -//#define USE_IOSTREAM +//#define USE_NO_IOSTREAM // Uncomment this to enable only runtime font scaling, without all the rest of the Abstracts //#define GFX_SIZEABLE_TEXT