Shows how to use a display and the touch controller. A very basic paint program.

Dependencies:   DmTftLibrary mbed

Files at this revision

API Documentation at this revision

Comitter:
displaymodule
Date:
Mon Jul 07 11:55:26 2014 +0000
Parent:
1:c5ef2d3261d3
Child:
3:84a858adc7ff
Commit message:
Updated library dependencies.

Changed in this revision

DmTftLibrary.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/DmTftLibrary.lib	Fri Jul 04 10:35:27 2014 +0000
+++ b/DmTftLibrary.lib	Mon Jul 07 11:55:26 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/displaymodule/code/DmTftLibrary/#6cd8c36cbdb3
+http://mbed.org/users/displaymodule/code/DmTftLibrary/#b24f01d148c4
--- a/main.cpp	Fri Jul 04 10:35:27 2014 +0000
+++ b/main.cpp	Mon Jul 07 11:55:26 2014 +0000
@@ -55,7 +55,7 @@
 
 #define NUM_BUTTONS  (sizeof(buttons)/sizeof(buttons[0]))
 
-#if 1
+#if 0
   /* Displays without adapter */
   #define DM_PIN_SPI_MOSI   D11
   #define DM_PIN_SPI_MISO   D12
@@ -78,18 +78,16 @@
  * Local variables
  *****************************************************************************/
 
-//DmTftHX8353C tft;  /* DM_TFT18_101 */
-//DmTftS6D0164 tft;  /* DM_TFT22_102 */
-//DmTftIli9325 tft;  /* DM_TFT28_103 and DM_TFT24_104 */
+DmTftIli9325 tft;  /* DM_TFT28_103 and DM_TFT24_104 */
 //DmTftIli9341 tft;  /* DM_TFT28_105 */
-DmTftSsd2119 tft;   /* DM_TFT35_107 */
+//DmTftSsd2119 tft;   /* DM_TFT35_107 */
 
-//DmTouch touch(DmTouch::DM_TFT28_103, DmTouch::Software); /* For LPC4088 QuickStart Board */
+DmTouch touch(DmTouch::DM_TFT28_103, DmTouch::Software); /* For LPC4088 QuickStart Board */
 //DmTouch touch(DmTouch::DM_TFT28_103);
 //DmTouch touch(DmTouch::DM_TFT24_104, DmTouch::Software); /* For LPC4088 QuickStart Board */
 //DmTouch touch(DmTouch::DM_TFT24_104);
 //DmTouch touch(DmTouch::DM_TFT28_105);
-DmTouch touch(DmTouch::DM_TFT35_107);
+//DmTouch touch(DmTouch::DM_TFT35_107);
 
 DigitalInOut csTouch(DM_PIN_CS_TOUCH, PIN_OUTPUT, PullUp, 1);
 DigitalInOut csDisplay(DM_PIN_CS_TFT, PIN_OUTPUT, PullUp, 1);