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:
19:40a5d0425259
Parent:
11:9bb71766cafc
Child:
20:275bf616ceb7
diff -r 52cbeede86f0 -r 40a5d0425259 SPI_TFT.h
--- a/SPI_TFT.h	Tue Oct 22 20:17:29 2013 +0000
+++ b/SPI_TFT.h	Wed Jun 17 14:15:16 2020 +0000
@@ -1,6 +1,6 @@
 /* mbed library for 240*320 pixel display TFT based on HX8347D LCD Controller
  * Copyright (c) 2011 Peter Drescher - DC2PD
- *
+ * Edited for Wavehare - JHD
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE