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:
jhd25
Date:
Wed Jun 17 14:15:16 2020 +0000
Parent:
18:52cbeede86f0
Child:
20:275bf616ceb7
Commit message:
Waveshare 28." Version

Changed in this revision

SPI_TFT.h Show annotated file Show diff for this revision Revisions of this file
--- 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