a

Dependencies:   HTTPClient SeeedStudioTFTv2 TFT_fonts WIZnet_Library mbed

Fork of Seeed_TFT_Touch_Shield by Shields

Files at this revision

API Documentation at this revision

Comitter:
screamer
Date:
Tue May 06 19:06:35 2014 +0000
Parent:
1:b2794eb7c940
Child:
3:a717ac467c2e
Commit message:
Change pin names to Arduino standard and update libraries

Changed in this revision

SeeedStudioTFTv2.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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/SeeedStudioTFTv2.lib	Mon Feb 17 06:24:26 2014 +0000
+++ b/SeeedStudioTFTv2.lib	Tue May 06 19:06:35 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mazgch/code/SeeedStudioTFTv2/#f2aaffad7d38
+http://mbed.org/teams/components/code/SeeedStudioTFTv2/#362765fdf287
--- a/main.cpp	Mon Feb 17 06:24:26 2014 +0000
+++ b/main.cpp	Tue May 06 19:06:35 2014 +0000
@@ -27,47 +27,19 @@
 #include "Arial28x28.h"
 #include "font_big.h"
 
-#if defined(TARGET_LPC11U24)    //SEEEDUINO_ARCH
-#define PIN_XP          P0_14
-#define PIN_XM          P0_12
-#define PIN_YP          P0_13
-#define PIN_YM          P0_11
-#define PIN_MOSI        P1_22
-#define PIN_MISO        P1_21
-#define PIN_SCLK        P1_20
-#define PIN_CS_TFT      P1_24
-#define PIN_DC_TFT      P1_25
-#define PIN_BL_TFT      P1_5
-#define PIN_CS_SD       P1_18
-#elif defined(TARGET_LPC1768)   //SEEEDUINO_ARCH_PRO
-#define PIN_XP          P0_26
-#define PIN_XM          P0_24
-#define PIN_YP          P0_25
-#define PIN_YM          P0_23
-#define PIN_MOSI        P0_18
-#define PIN_MISO        P0_17
-#define PIN_SCLK        P0_15
-#define PIN_CS_TFT      P2_3
-#define PIN_DC_TFT      P2_4
-#define PIN_BL_TFT      P2_5
-#define PIN_CS_SD       P2_2
-#else //please redefine the following pins
-#define PIN_XP
-#define PIN_XM
-#define PIN_YP
-#define PIN_YM
-#define PIN_MOSI
-#define PIN_MISO
-#define PIN_SCLK
-#define PIN_CS_TFT
-#define PIN_DC_TFT
-#define PIN_BL_TFT
-#define PIN_CS_SD
-#endif
+#define PIN_XP          A3
+#define PIN_XM          A1
+#define PIN_YP          A2
+#define PIN_YM          A0
+#define PIN_MOSI        D11
+#define PIN_MISO        D12
+#define PIN_SCLK        D13
+#define PIN_CS_TFT      D5
+#define PIN_DC_TFT      D6
+#define PIN_BL_TFT      D7
+#define PIN_CS_SD       D4
 
-//SeeedStudioTFTv2 TFT(PTB3, PTB1, PTB2, PTB0, PTD2, PTD3, PTD1, PTA5, PTC8, PTC9, PTA4);
-
-SeeedStudioTFTv2 TFT(PIN_XP,PIN_XM,PIN_YP,PIN_YM,PIN_MOSI,PIN_MISO,PIN_SCLK,PIN_CS_TFT,PIN_DC_TFT,PIN_BL_TFT,PIN_CS_SD);
+SeeedStudioTFTv2 TFT(PIN_XP, PIN_XM, PIN_YP, PIN_YM, PIN_MOSI, PIN_MISO, PIN_SCLK, PIN_CS_TFT, PIN_DC_TFT, PIN_BL_TFT, PIN_CS_SD);
 
 int main()
 {
@@ -115,7 +87,7 @@
     TFT.cls();
     TFT.set_font((unsigned char*) Arial24x23);
     TFT.locate(0,0);
-    TFT.printf("Different Fonts :");
+    TFT.printf("Different Fonts:");
     TFT.set_font((unsigned char*) Neu42x35);
     TFT.locate(0,30);
     TFT.printf("Hello Mbed 1");
--- a/mbed.bld	Mon Feb 17 06:24:26 2014 +0000
+++ b/mbed.bld	Tue May 06 19:06:35 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/f37f3b9c9f0b
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776
\ No newline at end of file