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:
20:275bf616ceb7
Parent:
0:de9d1462a835
diff -r 40a5d0425259 -r 275bf616ceb7 TextDisplay.h
--- a/TextDisplay.h	Wed Jun 17 14:15:16 2020 +0000
+++ b/TextDisplay.h	Wed Jun 17 16:13:47 2020 +0100
@@ -17,6 +17,8 @@
 #define MBED_TEXTDISPLAY_H
 
 #include "mbed.h"
+#include <Stream.h>
+
 
 class TextDisplay : public Stream {
 public: