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: Hexi_OLED_SSD1351
Fork of Hexi_OLED_Image_Example by
Diff: main.cpp
- Revision:
- 3:84f8d56a3ded
- Parent:
- 2:2f0f1b37dae3
--- a/main.cpp Fri Aug 26 23:06:14 2016 +0000
+++ b/main.cpp Sun Aug 28 16:51:18 2016 +0000
@@ -1,7 +1,6 @@
#include "mbed.h"
#include "Hexi_OLED_SSD1351.h"
#include "images.h"
-#include "OLED_types.h"
/*
* Bitmaps need to be formatted as 16bppRgb565, flipped vertically
@@ -31,7 +30,8 @@
/* Turn on the backlight of the OLED Display */
oled.DimScreenON();
- while (true) {
+ while (true)
+ {
/* Fill the screen with white to overwrite previous image */
oled.FillScreen(COLOR_WHITE);
@@ -43,11 +43,11 @@
/* Fill the screen with white to overwrite previous image */
oled.FillScreen(COLOR_WHITE);
+
/* Draw 96px by 32px NXP Banner at the bottom by setting x =0,y=64(96-32)*/
oled.DrawImage(image2,0,64);
Thread::wait(2000);
-
- }
+ }
}
