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.
Diff: Adafruit_SSD1306.h
- Revision:
- 10:d5aee2d2f8dd
- Parent:
- 9:ddb97c9850a2
- Child:
- 12:7964c2cfdebc
diff -r ddb97c9850a2 -r d5aee2d2f8dd Adafruit_SSD1306.h
--- 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;