Modified library to add delay after releasing reset. This is needed because the reset signal is enabling an LDO to provide power to the display and it needs time to turn on.
Fork of Adafruit_GFX by
Revision 10:d5aee2d2f8dd, committed 2014-10-20
- Comitter:
- nkhorman
- Date:
- Mon Oct 20 03:16:15 2014 +0000
- Parent:
- 9:ddb97c9850a2
- Child:
- 12:7964c2cfdebc
- Commit message:
- fix - missed this in the refactor
Changed in this revision
| Adafruit_SSD1306.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Adafruit_SSD1306.h Sun Oct 19 20:55:27 2014 +0000
+++ b/Adafruit_SSD1306.h Mon Oct 20 03:16:15 2014 +0000
@@ -48,7 +48,9 @@
Adafruit_SSD1306(PinName RST, uint8_t rawHeight = 32, uint8_t rawWidth = 128)
: Adafruit_GFX(rawWidth,rawHeight)
, rst(RST,false)
- {};
+ {
+ buffer.resize(rawHeight * rawWidth / 8);
+ };
void begin(uint8_t switchvcc = SSD1306_SWITCHCAPVCC);
virtual void command(uint8_t c) = 0;
