Sample GUI for LPC4088. Base code to begin dev
Dependencies: DMBasicGUI DMSupport
Fork of lpc4088_displaymodule_shipped_demo by
Revision 4:a7cbb22e4348, committed 2015-04-28
- 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
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);