2.8" TFT LCD with Cap Touch Breakout Board w/MicroSD Socket interfaced with kl25z
Dependencies: SPI_TFT_ILI9341 TFT_fonts mbed
Fork of TFT_Test_ILI9341 by
Diff: main.cpp
- Revision:
- 1:42e48610ba0f
- Parent:
- 0:414a960bd52e
--- a/main.cpp Wed Jun 12 22:56:43 2013 +0000 +++ b/main.cpp Tue Oct 14 11:02:54 2014 +0000 @@ -17,7 +17,7 @@ // the TFT is connected to SPI pin 11-14 -SPI_TFT_ILI9341 TFT(p5, p6, p7, p8, p9, p10,"TFT"); // mosi, miso, sclk, cs, reset, dc +SPI_TFT_ILI9341 TFT(PTD2, PTD3, PTD1, PTD0, PTD6, PTD5,"TFT"); // mosi, miso, sclk, cs, reset, dc int main() @@ -73,7 +73,7 @@ TFT.cls(); TFT.set_font((unsigned char*) Arial24x23); TFT.locate(0,0); - TFT.printf("Different Fonts :"); + TFT.printf("siet hello"); TFT.set_font((unsigned char*) Neu42x35); TFT.locate(0,30); @@ -95,12 +95,12 @@ TFT.Bitmap(90,90,172,55,p1); - wait(5); - TFT.cls(); - TFT.locate(10,10); - TFT.printf("Graphic from File System"); - TFT.locate(10,20); - TFT.printf("open test.bmp"); - int err = TFT.BMP_16(20,50,"test.bmp"); - if (err != 1) TFT.printf(" - Err: %d",err); + wait(5); + TFT.cls(); + TFT.locate(10,10); + TFT.printf("Graphic from File System"); + TFT.locate(10,20); + TFT.printf("open test.bmp"); + int err = TFT.BMP_16(20,50,"test.bmp"); + if (err != 1) TFT.printf(" - Err: %d",err); }