Example showing the use of displays from DisplayModule.com with the LPC4088 Experiment Base Board
Dependencies: DmTftLibrary mbed
Fork of dm_bubbles by
Diff: main.cpp
- Revision:
- 1:e286034c8f6a
- Parent:
- 0:70db0a4adfce
- Child:
- 2:43fe0d1d9259
--- a/main.cpp Tue May 20 15:33:57 2014 +0000 +++ b/main.cpp Fri Jul 04 10:32:50 2014 +0000 @@ -25,23 +25,23 @@ } while(false) -#if 1 /* Displays without adapter */ -#define DM_PIN_SPI_MOSI D11 -#define DM_PIN_SPI_MISO D12 -#define DM_PIN_SPI_SCLK D13 - -#define DM_PIN_CS_TOUCH D4 -#define DM_PIN_CS_TFT D10 -#define DM_PIN_CS_SDCARD D8 -#define DM_PIN_CS_FLASH D6 -#else /* Displays with adapter */ -#define DM_PIN_SPI_MOSI A0 -#define DM_PIN_SPI_MISO D9 -#define DM_PIN_SPI_SCLK A1 - -#define DM_PIN_CS_TOUCH D8 -#define DM_PIN_CS_TFT A3 -#define DM_PIN_CS_SDCARD D10 +#if 1 + /* Displays without adapter */ + #define DM_PIN_SPI_MOSI D11 + #define DM_PIN_SPI_MISO D12 + #define DM_PIN_SPI_SCLK D13 + #define DM_PIN_CS_TOUCH D4 + #define DM_PIN_CS_TFT D10 + #define DM_PIN_CS_SDCARD D8 + #define DM_PIN_CS_FLASH D6 +#else + /* Displays with adapter */ + #define DM_PIN_SPI_MOSI A0 + #define DM_PIN_SPI_MISO D9 + #define DM_PIN_SPI_SCLK A1 + #define DM_PIN_CS_TOUCH D8 + #define DM_PIN_CS_TFT A3 + #define DM_PIN_CS_SDCARD D10 #endif /****************************************************************************** @@ -54,15 +54,15 @@ //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 */ +//DmTftIli9341 tft; /* DM_TFT28_105 */ +DmTftSsd2119 tft; /* DM_TFT35_107 */ DigitalInOut csTouch(DM_PIN_CS_TOUCH, PIN_OUTPUT, PullUp, 1); DigitalInOut csDisplay(DM_PIN_CS_TFT, PIN_OUTPUT, PullUp, 1); DigitalInOut csSDCard(DM_PIN_CS_SDCARD, PIN_OUTPUT, PullUp, 1); #ifdef DM_PIN_CS_FLASH DigitalInOut csFlash(DM_PIN_CS_FLASH, PIN_OUTPUT, PullUp, 1); -#endif +#endif /****************************************************************************** * Global variables