Library to control a QVGA TFT connected to SPI. You can use printf to print text The lib can handle different fonts, draw lines, circles, rect and bmp

Dependents:   TFT_Test1 SourceCodePro31-SB Mandelbrot Mindwave-screen ... more

See http://mbed.org/cookbook/SPI-driven-QVGA-TFT for details.

Revision:
6:34a13617fd35
Parent:
5:9cbf4a534f7e
Child:
7:e753bb62eeb9
--- a/SPI_TFT.cpp	Thu Sep 20 23:40:46 2012 +0000
+++ b/SPI_TFT.cpp	Sat Sep 22 20:41:44 2012 +0000
@@ -29,7 +29,7 @@
 #define BPP         16                  // Bits per pixel                
 
 
-extern Serial pc;
+//extern Serial pc;
 //extern DigitalOut xx;     // debug !!
 
 SPI_TFT::SPI_TFT(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset, const char *name)
@@ -1011,11 +1011,6 @@
     } while ((PixelWidth * 2 + padd)%4 != 0);
 
 
-    pc.printf("width = %d \n\r",PixelWidth);
-    pc.printf("heigh = %d \n\r",PixelHeigh);
-    pc.printf("padd = %d \n\r",padd);
-    pc.printf("start = 0x%x \n\r",start_data);
-
 //fseek(Image, 70 ,SEEK_SET);
     window(x, y,PixelWidth ,PixelHeigh);
     wr_cmd(0x22);