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

Files at this revision

API Documentation at this revision

Comitter:
John Durrell
Date:
Tue Mar 30 20:38:26 2021 +0100
Parent:
26:231a28b27a76
Commit message:
Sorting

Changed in this revision

SPI_TFT.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 231a28b27a76 -r 8360ab3c19d6 SPI_TFT.cpp
--- a/SPI_TFT.cpp	Mon Jul 06 10:57:10 2020 +0100
+++ b/SPI_TFT.cpp	Tue Mar 30 20:38:26 2021 +0100
@@ -25,6 +25,7 @@
 // 04.03.13 add support for new Kinetis board
 // 25.03.13 fix Bug in bitmap for Kinetis board
 // 18.10.13 Better Circle function from Michael Ammann
+// 2020-2021 Hacked by JHD
 
 #include "SPI_TFT.h"
 #include "mbed.h"