Library (as yet untested) for use with the Mikroelectronics tft_proto screens

Dependencies:   SPI_TFT_ILI9341 TFT_fonts mbed

Fork of TFT_banggood by chris stevens

Revision:
3:676adf84c914
Parent:
2:25bfb21253a6
Child:
4:14043cafbec7
--- a/main.cpp	Tue Oct 21 10:00:17 2014 +0000
+++ b/main.cpp	Thu Jun 11 09:23:37 2015 +0000
@@ -16,19 +16,24 @@
 // the SD-connector is connected to SPI pin 11-13 
 //SDFileSystem sd(p11, p12, p13, p14, "sd"); // mosi,miso,sck,cs
 
-//LocalFileSystem local("local");
 
-extern unsigned char p1[];  // the mbed logo graphic
+
 
 // the display has a backlight switch on board 
 DigitalOut LCD_LED(PTA13);       
+DigitalOut pwr(PTD7);
 
 // the TFT is connected to SPI pin 5-7
 //SPI_TFT_ILI9341 TFT(p5, p6, p7, p8, p9, p10,"TFT"); // mosi, miso, sclk, cs, reset, dc for lpc1768
 SPI_TFT_ILI9341 TFT(PTD2, PTD3, PTD1, PTD5, PTD0, PTC12,"TFT"); // mosi, miso, sclk, cs, reset, dc for frdmkl25z
-
+//NB better combination to use a coherent 2x4 block for lcd 
+//   SPI_TFT_ILI9341 TFT(PTD2, PTD3, PTD1, PTA16, PTA17, PTC16,"TFT"); // mosi, miso, sclk, cs, reset, dc for frdmkl25z
+//   DigitalOut LCD_LED(PTC17);  
+//SDFileSystem sd(PTD2, PTD3, PTD1, PTA1, "sd"); // mosi,miso,sck,cs
 int main()
 {
+    pwr=1;
+    wait(0.2);
     while(1){
     int i;
     LCD_LED = 1;            // backlight on