Sample GUI for LPC4088. Base code to begin dev

Dependencies:   DMBasicGUI DMSupport

Fork of lpc4088_displaymodule_shipped_demo by Embedded Artists

Files at this revision

API Documentation at this revision

Comitter:
alindvall
Date:
Tue Apr 28 12:21:14 2015 +0000
Parent:
3:57de4d043115
Commit message:
Updated to latest version of the DMSupport and DMBasicGUI libraries

Changed in this revision

AppImageViewer.cpp Show annotated file Show diff for this revision Revisions of this file
DMSupport.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 57de4d043115 -r a7cbb22e4348 AppImageViewer.cpp
--- a/AppImageViewer.cpp	Mon Mar 23 13:49:19 2015 +0000
+++ b/AppImageViewer.cpp	Tue Apr 28 12:21:14 2015 +0000
@@ -193,6 +193,10 @@
         }
         _win->fb = fb;
         Image::ImageData_t* data = (Image::ImageData_t*)evt.value.p;
+        if ((data->width < _disp->width()) || (data->height < _disp->height())) {
+          // Clear background as the image is not full screen
+          memset(fb, 0, _disp->fbSize());
+        }
         swim_put_image_xy(_win, (COLOR_T*)data->pixels, data->width, data->height, (_disp->width()-data->width)/2, (_disp->height()-data->height)/2);
         free(data->pointerToFree);
         _mailbox.free(data);
@@ -264,4 +268,3 @@
 {
     _resOk = res;
 }
-
diff -r 57de4d043115 -r a7cbb22e4348 DMSupport.lib
--- a/DMSupport.lib	Mon Mar 23 13:49:19 2015 +0000
+++ b/DMSupport.lib	Tue Apr 28 12:21:14 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/Embedded-Artists/code/DMSupport/#07659b5d90ce
+http://developer.mbed.org/teams/Embedded-Artists/code/DMSupport/#e1cb4dd9bfeb
diff -r 57de4d043115 -r a7cbb22e4348 main.cpp
--- a/main.cpp	Mon Mar 23 13:49:19 2015 +0000
+++ b/main.cpp	Tue Apr 28 12:21:14 2015 +0000
@@ -567,7 +567,7 @@
   wait_ms(30);
   board->buzzer(440,50);
   
-  log->printf("\n\n---\nDemo for Embedded World 2015\nBuilt: " __DATE__ " at " __TIME__ "\n\n");
+  log->printf("\n\n---\nDemo flashed on new Display Modules.\nBuilt: " __DATE__ " at " __TIME__ "\n\n");
   
  
   Thread tAlive(aliveTask);