Shows how to use the display. Draws circles that bounce around on the display.
Dependencies: DmTftLibrary mbed
Diff: main.cpp
- Revision:
- 2:43fe0d1d9259
- Parent:
- 1:e286034c8f6a
diff -r e286034c8f6a -r 43fe0d1d9259 main.cpp --- a/main.cpp Fri Jul 04 10:32:50 2014 +0000 +++ b/main.cpp Tue Jul 08 06:23:17 2014 +0000 @@ -25,7 +25,7 @@ } while(false) -#if 1 +#if 0 /* Displays without adapter */ #define DM_PIN_SPI_MOSI D11 #define DM_PIN_SPI_MISO D12 @@ -53,9 +53,9 @@ //DmTftHX8353C tft; /* DM_TFT18_101 */ //DmTftS6D0164 tft; /* DM_TFT22_102 */ -//DmTftIli9325 tft; /* DM_TFT28_103 and DM_TFT24_104 */ +DmTftIli9325 tft; /* DM_TFT28_103 and DM_TFT24_104 */ //DmTftIli9341 tft; /* DM_TFT28_105 */ -DmTftSsd2119 tft; /* DM_TFT35_107 */ +//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);