Shows how to use a display, the onboard SD Card and the onboard SPI Flash. Requires a display module with direct Arduino pinning
Dependencies: DmTftLibrary SDFileSystem mbed
Revision 6:0f69891b105e, committed 2015-01-22
- Comitter:
- displaymodule
- Date:
- Thu Jan 22 05:54:22 2015 +0000
- Parent:
- 5:8c65e8d6d6dc
- Commit message:
- Add DM_TFT43_108, DM_TFT50_111 based on new lib drv: DmTftRa8875
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 |
diff -r 8c65e8d6d6dc -r 0f69891b105e DmTftLibrary.lib --- a/DmTftLibrary.lib Mon Sep 01 11:02:22 2014 +0000 +++ b/DmTftLibrary.lib Thu Jan 22 05:54:22 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/displaymodule/code/DmTftLibrary/#d263094e666d +http://mbed.org/users/displaymodule/code/DmTftLibrary/#ef0528e1b5d1
diff -r 8c65e8d6d6dc -r 0f69891b105e main.cpp --- a/main.cpp Mon Sep 01 11:02:22 2014 +0000 +++ b/main.cpp Thu Jan 22 05:54:22 2015 +0000 @@ -18,6 +18,7 @@ #include "DmTftIli9341.h" #include "DmTftSsd2119.h" +#include "DmTftRa8875.h" #include "DmTouch.h" #include "W25Q16BV.h" @@ -50,10 +51,11 @@ *****************************************************************************/ //DmTftIli9341 tft; /* DM_TFT28_105 */ -DmTftSsd2119 tft; /* DM_TFT35_107 */ +//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. */ //DmTouch touch(DmTouch::DM_TFT28_105); -DmTouch touch(DmTouch::DM_TFT35_107); +//DmTouch touch(DmTouch::DM_TFT35_107); SDFileSystem sd(DM_PIN_SPI_MOSI, DM_PIN_SPI_MISO, DM_PIN_SPI_SCLK, DM_PIN_CS_SDCARD, "sd"); // mosi,miso,clk,cs W25Q16BV flash(DM_PIN_SPI_MOSI, DM_PIN_SPI_MISO, DM_PIN_SPI_SCLK, DM_PIN_CS_FLASH); // mosi,miso,clk,cs