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.
Dependencies: SSD1308_128x64_I2C
Diff: main.cpp
- Revision:
- 8:8d49c965b3ec
- Parent:
- 7:ae282775cbcc
- Child:
- 9:8da05bf28a07
diff -r ae282775cbcc -r 8d49c965b3ec main.cpp
--- a/main.cpp Thu Jan 01 17:54:33 2015 +0000
+++ b/main.cpp Mon Dec 18 18:46:21 2017 +0000
@@ -5,6 +5,7 @@
* Released under the MIT License: http://mbed.org/license/mit
*
* version 0.2 Initial Release
+ * version 0.3 2017 Fixed non-copyable issue (Thx kenjiArai)
*/
#include "mbed.h"
#include "mbed_logo.h"
@@ -45,7 +46,7 @@
Serial pc(USBTX, USBRX); // tx, rx
// Instantiate OLED
-SSD1308 oled = SSD1308(i2c, SSD1308_SA0);
+SSD1308 oled = SSD1308(&i2c, SSD1308_SA0);
void show_menu() {
pc.printf("0: Exit\r");