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:
11:9bb71766cafc
Parent:
10:071ae6e02fcf
Child:
12:9de056a58793
Child:
13:2c91cb947161
--- a/SPI_TFT.cpp	Sun Feb 03 18:18:43 2013 +0000
+++ b/SPI_TFT.cpp	Tue Feb 19 21:49:55 2013 +0000
@@ -526,7 +526,7 @@
 
 void SPI_TFT::hline(int x0, int x1, int y, int color)
 {
-    int w,i;
+    int w;
     w = x1 - x0 + 1;
     window(x0,y,w,1);
     wr_cmd(0x22);
@@ -568,6 +568,7 @@
         } while ((LPC_SSP1->SR & 0x10) == 0x10); // SPI FIFO not empty
     }
 #else
+    int i;
     for (i=0; i<w; i++) {
         _spi.write(color);
     }