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
Diff: main.cpp
- Revision:
- 6:0f69891b105e
- Parent:
- 4:93ca338876e2
--- 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