A board support package for the LPC4088 Display Module.

Dependencies:   DM_HttpServer DM_USBHost

Dependents:   lpc4088_displaymodule_emwin lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI ... more

Fork of DMSupport by EmbeddedArtists AB

Revision:
36:92193dc72995
Parent:
34:fc366bab393f
Child:
41:e06e764ff4fd
--- a/DMBoard.cpp	Fri Mar 20 13:36:00 2015 +0000
+++ b/DMBoard.cpp	Fri Mar 20 14:44:06 2015 +0000
@@ -199,19 +199,21 @@
   return _button.read() == 0;
 }
 
+TouchPanel* DMBoard::touchPanel()
+{
 #if defined(DM_BOARD_USE_TOUCH)
-  TouchPanel* DMBoard::touchPanel()
-  {
-    if (BiosTouch::instance().isTouchSupported()) {
-      return &BiosTouch::instance();
-    }
-    return NULL;
+  if (BiosTouch::instance().isTouchSupported()) {
+    return &BiosTouch::instance();
   }
 #endif
+  return NULL;
+}
 
+Display* DMBoard::display()
+{
 #if defined(DM_BOARD_USE_DISPLAY)
-  Display* DMBoard::display()
-  {
-    return &BiosDisplay::instance();
-  }
+  return &BiosDisplay::instance();
+#else
+  return NULL;
 #endif
+}