Adapted from Peter Dresche's original for Waveshare 2.8inch TFT Touch Shield Board and Mbed 6. RGB order reversed by changing reg 16 commands, spi write code adjusted as there is no reset pin but there is data command pin. Wait commands changed for new thread_sleep style, Stream class explicitly included. 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:
5:9cbf4a534f7e
Parent:
4:824715115046
Child:
6:34a13617fd35
diff -r 824715115046 -r 9cbf4a534f7e SPI_TFT.cpp
--- a/SPI_TFT.cpp	Thu Sep 20 23:32:07 2012 +0000
+++ b/SPI_TFT.cpp	Thu Sep 20 23:40:46 2012 +0000
@@ -19,7 +19,7 @@
 // 06.04.12 fix SSEL CS problem
 // 06.04.12 use direct access to the spi register to speed up the library.
 // 11.09.12 switch back to using io pin as cs to avoid problems with SSEL CS.
-// 21.09.12 fix Bug in BMP_16
+// 21.09.12 fix Bug in BMP_16 
 
 
 #include "SPI_TFT.h"