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.
Diff: SPI_TFT.cpp
- Revision:
- 15:f5772cffc2b2
- Parent:
- 14:ea3206e8e3bd
- Child:
- 16:2efcbb2814fa
diff -r ea3206e8e3bd -r f5772cffc2b2 SPI_TFT.cpp --- a/SPI_TFT.cpp Tue Mar 05 21:48:14 2013 +0000 +++ b/SPI_TFT.cpp Tue Mar 05 21:58:25 2013 +0000 @@ -50,11 +50,9 @@ #if defined TARGET_LPC1768 if (mosi == p11 || mosi == P0_18){ spi_port = 0; // we must know the used SPI port to setup the DMA - fprintf(stderr, "spi_port 0 \n\r"); } else { spi_port = 1; - fprintf(stderr, "spi_port 1 \n\r"); } #endif tft_reset(); @@ -191,10 +189,8 @@ { #if defined TARGET_KL25Z // 8 Bit SPI _spi.format(8,3); - fprintf(stderr, "8 Bit mode\n\r"); #else // 16 Bit SPI _spi.format(16,3); // 16 bit spi mode 3 - fprintf(stderr, "16 Bit mode\n\r"); #endif _spi.frequency(48000000); // 48 Mhz SPI clock _cs = 1; // cs high