Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 19:e16d3a603d50, committed 2020-02-06
- Comitter:
- jonaangelica
- Date:
- Thu Feb 06 13:20:35 2020 +0000
- Parent:
- 18:a267f00528be
- Commit message:
- oled code;
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 a267f00528be -r e16d3a603d50 Adafruit_GFX_Config.h --- a/Adafruit_GFX_Config.h Tue Feb 07 23:52:12 2017 +0000 +++ b/Adafruit_GFX_Config.h Thu Feb 06 13:20:35 2020 +0000 @@ -5,7 +5,7 @@ //#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 a267f00528be -r e16d3a603d50 Adafruit_SSD1306.cpp --- a/Adafruit_SSD1306.cpp Tue Feb 07 23:52:12 2017 +0000 +++ b/Adafruit_SSD1306.cpp Thu Feb 06 13:20:35 2020 +0000 @@ -61,8 +61,8 @@ command(SSD1306_SETSTARTLINE | 0x0); // line #0 command(SSD1306_CHARGEPUMP); - command((vccstate == SSD1306_EXTERNALVCC) ? 0x10 : 0x14); - + command(0x14);//command((vccstate == SSD1306_EXTERNALVCC) ? 0x10 : 0x14); +// command(SSD1306_MEMORYMODE); command(0x00); // 0x0 act like ks0108 @@ -80,7 +80,7 @@ command((vccstate == SSD1306_EXTERNALVCC) ? 0x22 : 0xF1); command(SSD1306_SETVCOMDETECT); - command(0x40); + command(0x30); command(SSD1306_DISPLAYALLON_RESUME);