Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DM_FATFileSystem EthernetInterface HTTPClient mbed-rtos mbed-src
Fork of DMSupport by
Diff: DMBoard.cpp
- 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
    