test export
Dependencies: DmTftLibrary mbed
Fork of dm_touch by
Revision 6:d28b8be6e90a, committed 2015-09-18
- Comitter:
- displaymodule
- Date:
- Fri Sep 18 14:59:45 2015 +0000
- Parent:
- 5:cf0097e3a18c
- Child:
- 7:5cc7d70faa97
- Commit message:
- add DM-TFT28-116: DmTpFt6x06.cpp / h
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 Wed Jan 21 13:57:06 2015 +0000 +++ b/DmTftLibrary.lib Fri Sep 18 14:59:45 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/displaymodule/code/DmTftLibrary/#264e19992620 +http://mbed.org/users/displaymodule/code/DmTftLibrary/#6ff2649b6c27
--- a/main.cpp Wed Jan 21 13:57:06 2015 +0000 +++ b/main.cpp Fri Sep 18 14:59:45 2015 +0000 @@ -23,6 +23,7 @@ #include "DmTftSsd2119.h" #include "DmTftRa8875.h" #include "DmTouch.h" +#include "DmTpFt6x06.h" /****************************************************************************** * Typedefs and defines @@ -60,9 +61,9 @@ *****************************************************************************/ //DmTftIli9325 tft; /* DM_TFT28_103 and DM_TFT24_104 */ -//DmTftIli9341 tft; /* DM_TFT28_105 */ +DmTftIli9341 tft; /* DM_TFT28_105 */ //DmTftSsd2119 tft; /* DM_TFT35_107 */ -DmTftRa8875 tft; /* DM_TFT43_108 and DM_TFT50_111 */ +//DmTftRa8875 tft; /* DM_TFT43_108 and DM_TFT50_111 */ //DmTouch touch(DmTouch::DM_TFT28_103, DmTouch::Software); /* For LPC4088 QuickStart Board */ //DmTouch touch(DmTouch::DM_TFT28_103); @@ -71,7 +72,11 @@ //DmTouch touch(DmTouch::DM_TFT28_105); //DmTouch touch(DmTouch::DM_TFT35_107); //DmTouch touch(DmTouch::DM_TFT43_108); // For DmTftRa8875 driver, The panel resolution should be config in DmTftRa8875::init() function on the DmTftRa8875.cpp file. -DmTouch touch(DmTouch::DM_TFT50_111); +//DmTouch touch(DmTouch::DM_TFT50_111); + +// DM-TFT28-116; +I2C i2c(D14, D15); +DmTpFt6x06 touch(DmTpFt6x06::DM_TFT28_116, i2c); DigitalInOut csTouch(DM_PIN_CS_TOUCH, PIN_OUTPUT, PullUp, 1); DigitalInOut csDisplay(DM_PIN_CS_TFT, PIN_OUTPUT, PullUp, 1);