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: Inits/SSD1306.cpp
- Revision:
- 33:f87f06292637
- Parent:
- 17:1dafb896c6f5
diff -r 9cd6227dc7a6 -r f87f06292637 Inits/SSD1306.cpp
--- a/Inits/SSD1306.cpp Mon May 02 22:44:05 2016 +0000
+++ b/Inits/SSD1306.cpp Mon Feb 06 12:29:33 2017 +0000
@@ -56,6 +56,17 @@
set_orientation(1);
locate(0,0);
}
+
+SSD1306::SSD1306(proto_t displayproto, int Hz, int address, PinName sda, PinName scl, const char* name , unsigned int LCDSIZE_X, unsigned int LCDSIZE_Y)
+ : LCD(displayproto, Hz, address, sda, scl, LCDSIZE_X, LCDSIZE_Y, IC_X_SEGS, IC_Y_COMS, name)
+{
+ init();
+ cls();
+ set_orientation(1);
+ locate(0,0);
+}
+
+
// reset and init the lcd controller
void SSD1306::init()
{