Library for SeeedStudioTFTv2 2.8 Zoll 240x360 pixel touch SD card

Dependencies:   SPI_TFT_ILI9341

Dependents:   SeeedStudioTFTv2_HelloWorld SeeedTouchLCD Seeed_TFT_Touch_Shield_v2_HelloWorld

Fork of SeeedStudioTFTv2 by Michael Ammann

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Sat Oct 19 21:32:43 2013 +0000
Parent:
6:2612205220c5
Child:
8:36ea6be5182e
Commit message:
..

Changed in this revision

SeeedStudioTFTv2.cpp Show annotated file Show diff for this revision Revisions of this file
SeeedStudioTFTv2.h Show annotated file Show diff for this revision Revisions of this file
--- a/SeeedStudioTFTv2.cpp	Sat Oct 19 21:21:59 2013 +0000
+++ b/SeeedStudioTFTv2.cpp	Sat Oct 19 21:32:43 2013 +0000
@@ -20,10 +20,10 @@
                                    PinName mosi, PinName miso, PinName sclk,
                                    PinName csTft, PinName rstTft, PinName dcTft, PinName blTft,
                                    PinName csSd):
-    SPI_TFT_ILI9341(mosi,miso,sclk,csTft,rstTft,dcTft, "tft"),
 #ifdef USE_SDCARD
     SDFileSystem(mosi,miso,sclk,csSd, "sdc"),
 #endif
+    SPI_TFT_ILI9341(mosi,miso,sclk,csTft,rstTft,dcTft, "tft"),
     bl(blTft)
 {
 #ifndef USE_SDCARD
--- a/SeeedStudioTFTv2.h	Sat Oct 19 21:21:59 2013 +0000
+++ b/SeeedStudioTFTv2.h	Sat Oct 19 21:32:43 2013 +0000
@@ -25,10 +25,11 @@
     int y;
 };
 
-class SeeedStudioTFTv2 : public  SPI_TFT_ILI9341
+class SeeedStudioTFTv2 : public  
 #ifdef USE_SDCARD
-    , SDFileSystem
+    SDFileSystem,
 #endif
+    SPI_TFT_ILI9341
 {
 public:
     /** create a TFT with touch object connected to the pins: