Example using the support package for LPC4088 DisplayModule

Dependencies:   DMBasicGUI DMSupport

Example using a lot of the features in the software package for the LPC4088 Display Module.

This project can be selected as a template when creating a new project based on the LPC4088 Display Module.

Information

This project works on the 4.3" display modules.

Some of the apps works on the 5" display modules. The ImageViewer and Slideshow app will show the images distorted as it does not take the resolution into consideration.

Information

The USB Status app is disabled. The Image viewer looks for images in the root of SD cards, USB memory sticks or the file system on the QSPI flash. The Slideshow app expects to find a slideshow script in /mci/elec14/ea_logo.txt.

This is what it looks like on the 4.3" display:

/media/uploads/embeddedartists/everything_cap_000.png /media/uploads/embeddedartists/everything_cap_001.png /media/uploads/embeddedartists/everything_cap_003.png /media/uploads/embeddedartists/everything_cap_004.png /media/uploads/embeddedartists/everything_cap_006.png /media/uploads/embeddedartists/everything_cap_008.png

Revision:
16:77f4f42eb6a7
Parent:
14:73f6c425b2b5
Child:
18:715f542538b3
--- a/AppNetworkSettings.cpp	Tue Jan 13 08:22:02 2015 +0000
+++ b/AppNetworkSettings.cpp	Sat Jan 17 14:17:51 2015 +0100
@@ -253,13 +253,16 @@
     
     // Wait for touches
     TouchPanel* touch = DMBoard::instance().touchPanel();
-    TouchPanel::touchCoordinate_t coord;
+    touch_coordinate_t coord;
 
     int lastPressed = NumButtons;
     Timer t;
     t.start();
     uint32_t repeatAt;
+
+    uint32_t maxDelay = osWaitForever; 
     while(!done && !abort) {
+      Thread::signal_wait(0x1, maxDelay);
       if (touch->read(coord) == TouchPanel::TouchError_Ok) {
         for (int i = 0; i < NumButtons; i++) {
           if (_buttons[i]->handle(coord.x, coord.y, coord.z > 0)) {
@@ -272,10 +275,13 @@
           }
         }
         if (lastPressed == ButtonUp || lastPressed == ButtonDown) {
+          maxDelay = 10;
           if (_buttons[lastPressed]->pressed() && t.read_ms() > repeatAt) {
             modifyValue((lastPressed == ButtonUp) ? 1 : -1);
             repeatAt = t.read_ms()+(200/(t.read_ms()/1000));
           }
+        } else {
+          maxDelay = osWaitForever;
         }
       }
     }