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.
Dependents: servo_sensor ArchPro_TFT BLE_Display SSD1306_demo ... more
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;
Adafruit / SSD1306 OLED 128x32 or 128x64