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 DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos mbed-src
Fork of DMSupport by
Diff: DMBoard.cpp
- Revision:
- 36:92193dc72995
- Parent:
- 34:fc366bab393f
--- 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
+}
