Shows how to use the display. Draws a bitmap from internal flash, some geometric shapes and some text
Dependencies: DmTftLibrary mbed
Revision 5:47192882d9d0, committed 2015-10-12
- Comitter:
- displaymodule
- Date:
- Mon Oct 12 08:42:18 2015 +0000
- Parent:
- 4:d58fe9f48040
- Commit message:
- Compatible with the new DmTftLibrary and mbed library, more platform support. Recommended updates.
Changed in this revision
diff -r d58fe9f48040 -r 47192882d9d0 DmTftLibrary.lib --- a/DmTftLibrary.lib Thu Jan 22 03:06:58 2015 +0000 +++ b/DmTftLibrary.lib Mon Oct 12 08:42:18 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/displaymodule/code/DmTftLibrary/#264e19992620 +http://mbed.org/users/displaymodule/code/DmTftLibrary/#2db7065edbec
diff -r d58fe9f48040 -r 47192882d9d0 main.cpp --- a/main.cpp Thu Jan 22 03:06:58 2015 +0000 +++ b/main.cpp Mon Oct 12 08:42:18 2015 +0000 @@ -32,19 +32,19 @@ use the same pins for USBRX/USBTX and display control. Printing will cause the display to not work. Read more about this on the display's notebook page. */ -//#define log(...) printf(__VA_ARGS__) -#define log(...) +#define log(...) printf(__VA_ARGS__) +//#define log(...) /****************************************************************************** * Local variables *****************************************************************************/ -//DmTftHX8353C tft; /* DM_TFT18_101 */ -//DmTftS6D0164 tft; /* DM_TFT22_102 */ -//DmTftIli9325 tft; /* DM_TFT28_103 and DM_TFT24_104 */ -//DmTftIli9341 tft; /* DM_TFT28_105 */ -//DmTftSsd2119 tft; /* DM_TFT35_107 */ -DmTftRa8875 tft; /* DM_TFT43_108 and DM_TFT50_111 For DmTftRa8875 driver, The panel resolution should be config in DmTftRa8875::init() function on the DmTftRa8875.cpp file. */ +//DmTftHX8353C tft(D2, D3, D4, D5, D6); /* DmTftHX8353C(PinName mosi, PinName clk, PinName cs, PinName dc, PinName rst) DM_TFT18_101 */ +//DmTftS6D0164 tft(A4, A3, A5, A2); /* DmTftS6D0164(PinName wr, PinName cs, PinName dc, PinName rst) DM_TFT22_102 */ +//DmTftIli9325 tft(A4, A3, A5, A2); /* DmTftIli9325(PinName wr, PinName cs, PinName dc, PinName rst) DM_TFT28_103 and DM_TFT24_104 */ +DmTftIli9341 tft(D10, D9, D11, D12, D13); /* DmTftIli9341(PinName cs, PinName dc, PinName mosi, PinName miso, PinName clk) DM_TFT28_105 */ +//DmTftSsd2119 tft(D10, D9, D11, D12, D13); /* DmTftSsd2119(PinName cs, PinName dc, PinName mosi, PinName miso, PinName clk) DM_TFT35_107 */ +//DmTftRa8875 tft(D10, D9, D11, D12, D13); /* DmTftRa8875(PinName cs, PinName sel, PinName mosi, PinName miso, PinName clk) DM_TFT43_108 and DM_TFT50_111 For DmTftRa8875 driver, The panel resolution should be config in DmTftRa8875::init() function on the DmTftRa8875.cpp file. */ int bmpWidth, bmpHeight; uint8_t bmpImageoffset;
diff -r d58fe9f48040 -r 47192882d9d0 mbed.bld --- a/mbed.bld Thu Jan 22 03:06:58 2015 +0000 +++ b/mbed.bld Mon Oct 12 08:42:18 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68 \ No newline at end of file