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
Dependents: TFT_Test1 SourceCodePro31-SB Mandelbrot Mindwave-screen ... more
See http://mbed.org/cookbook/SPI-driven-QVGA-TFT for details.
Revision 12:9de056a58793, committed 2013-03-05
- Comitter:
- dreschpe
- Date:
- Tue Mar 05 15:47:00 2013 +0000
- Parent:
- 11:9bb71766cafc
- Child:
- 17:d7e48335953e
- Commit message:
- Fix LPC11U24 bug
Changed in this revision
SPI_TFT.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SPI_TFT.cpp Tue Feb 19 21:49:55 2013 +0000 +++ b/SPI_TFT.cpp Tue Mar 05 15:47:00 2013 +0000 @@ -577,7 +577,8 @@ _spi.format(8,3); // 8 bit Mode 3 _spi.write(SPI_START | SPI_WR | SPI_DATA); // Write : RS = 1, RW = 0 _spi.format(16,3); // switch to 16 bit Mode 3 - for (i=0; i<w; i++) { + int j; + for (j=0; j<w; j++) { _spi.write(color); } #endif