Subdirectory provided by Embedded Artists

Dependencies:   DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos mbed-src

Dependents:   lpc4088_displaymodule_hello_world_Sept_2018

Fork of DMSupport by Embedded Artists

Revision:
13:2c60e28503f8
Parent:
10:1ac4b213f0f7
Child:
17:4ea2509445ac
diff -r 27f4b03607b0 -r 2c60e28503f8 DMBoard.cpp
--- a/DMBoard.cpp	Fri Dec 19 08:44:25 2014 +0000
+++ b/DMBoard.cpp	Fri Dec 19 12:10:19 2014 +0100
@@ -304,15 +304,19 @@
   return _button.read() == 0;
 }
 
-TouchPanel* DMBoard::touchPanel()
-{
-  if (BiosDisplayAndTouch::instance().isTouchSupported()) {
+#if defined(DM_BOARD_USE_DISPLAY)
+  TouchPanel* DMBoard::touchPanel()
+  {
+    if (BiosDisplayAndTouch::instance().isTouchSupported()) {
+      return &BiosDisplayAndTouch::instance();
+    }
+    return NULL;
+  }
+#endif
+
+#if defined(DM_BOARD_USE_DISPLAY)
+  Display* DMBoard::display()
+  {
     return &BiosDisplayAndTouch::instance();
   }
-  return NULL;
-}
-
-Display* DMBoard::display()
-{
-  return &BiosDisplayAndTouch::instance();
-}
+#endif