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
Diff: SPI_TFT.cpp
- Revision:
- 10:1e868317ff49
- Parent:
- 9:9dc5dfdda734
- Child:
- 11:3cfa9bb9b070
diff -r 9dc5dfdda734 -r 1e868317ff49 SPI_TFT.cpp --- a/SPI_TFT.cpp Wed Dec 21 22:38:25 2011 +0000 +++ b/SPI_TFT.cpp Fri Dec 30 11:48:57 2011 +0000 @@ -12,6 +12,8 @@ // fix bmp padding for Bitmap function +// speed up pixel +// 30.12.11 fix cls #include "SPI_TFT.h" @@ -271,7 +273,7 @@ void SPI_TFT::cls (void) { unsigned int i; - //WindowMax(); + WindowMax(); wr_cmd(0x22); wr_dat_start(); _spi.format(16,3); // 16 bit Mode 3