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

Revision:
8:e1f5232d93a0
Parent:
7:4781bb8eed45
Child:
9:9dc5dfdda734
--- a/SPI_TFT.cpp	Sun Sep 04 21:24:35 2011 +0000
+++ b/SPI_TFT.cpp	Mon Dec 12 23:07:26 2011 +0000
@@ -240,6 +240,10 @@
     wr_reg(0x02, (x >> 8));
     wr_reg(0x07, (y >> 0));
     wr_reg(0x06, (y >> 8));
+    wr_reg(0x05, (x+1 >> 0));
+    wr_reg(0x04, (x+1 >> 8));
+    wr_reg(0x09, (y+1 >> 0));
+    wr_reg(0x08, (y+1 >> 8));
     wr_cmd(0x22);
     wr_dat(color);
 }