to remember what's important
Dependencies: Hexi_OLED_SSD1351
Fork of Hexi_OLED_Image_Example by
Revision 3:84f8d56a3ded, committed 2016-08-28
- Comitter:
- cotigac
- Date:
- Sun Aug 28 16:51:18 2016 +0000
- Parent:
- 2:2f0f1b37dae3
- Child:
- 4:a25d5f22d44c
- Commit message:
- removed dependencies to oled types
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);
-
- }
+ }
}
