the OLED driver from Adafruit, make a little bug fix.
Fork of Adafruit_GFX by
Revision 19:25d3e39e8b13, committed 2018-06-12
- Comitter:
- poushen
- Date:
- Tue Jun 12 03:21:41 2018 +0000
- Parent:
- 18:3112550cc6a3
- Commit message:
- add ssd1306 b0 command before refresh screen buffer,; so the start page will always be page 0.; this fix the scrren shift up down problem when press reset.
Changed in this revision
Adafruit_GFX_Config.h | Show annotated file Show diff for this revision Revisions of this file |
Adafruit_SSD1306.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3112550cc6a3 -r 25d3e39e8b13 Adafruit_GFX_Config.h --- a/Adafruit_GFX_Config.h Tue Jun 23 09:49:01 2015 +0000 +++ b/Adafruit_GFX_Config.h Tue Jun 12 03:21:41 2018 +0000 @@ -2,10 +2,10 @@ #define _ADAFRUIT_GFX_CONFIG_H_ // Uncomment this to turn off the builtin splash -#define NO_SPLASH_ADAFRUIT +//#define NO_SPLASH_ADAFRUIT // Uncomment this to enable all functionality -//#define GFX_WANT_ABSTRACTS +#define GFX_WANT_ABSTRACTS // Uncomment this to enable only runtime font scaling, without all the rest of the Abstracts //#define GFX_SIZEABLE_TEXT
diff -r 3112550cc6a3 -r 25d3e39e8b13 Adafruit_SSD1306.cpp --- a/Adafruit_SSD1306.cpp Tue Jun 23 09:49:01 2015 +0000 +++ b/Adafruit_SSD1306.cpp Tue Jun 12 03:21:41 2018 +0000 @@ -140,6 +140,7 @@ command(SSD1306_SETLOWCOLUMN | 0x0); // low col = 0 command(SSD1306_SETHIGHCOLUMN | 0x0); // hi col = 0 command(SSD1306_SETSTARTLINE | 0x0); // line #0 + command(0xb0); // page 0 sendDisplayBuffer(); command(SSD1306_DISPLAYON); }