FRDM-K64F version of David Smart's RA8875_Demo using SDFileSystem to write to an SD card instead of LocalFileSystem

Dependencies:   RA8875 SDFileSystem mbed

Fork of RA8875_Demo by David Smart

/media/uploads/unix_guru/ra8875_demo.png

Revision:
13:3f6204d6140a
Parent:
12:e8a127d78000
--- a/main.cpp	Sat Jan 23 17:55:47 2016 +0000
+++ b/main.cpp	Tue Feb 23 02:49:18 2016 +0000
@@ -8,15 +8,24 @@
 #include "BPG_Arial31x32.h"
 #include "BPG_Arial63x63.h"
 
-LocalFileSystem local("local");     // Because I want <PrintScreen>
+#include "SDFileSystem.h" 
+#include "FATFileSystem.h" 
+
+
+
+//LocalFileSystem local("local");     // Because I want <PrintScreen>
+// Localfile system is not avail on K64F, but SD card is.
+SDFileSystem sd(PTE3, PTE1, PTE2, PTE4, "sd");
+
 Serial pc(USBTX, USBRX);            // And a little feedback
 
 int main()
 {
-    RA8875 lcd(p5, p6, p7, p12, NC, "tft");    // MOSI, MISO, SCK, /ChipSelect, /reset, name
+//    RA8875 lcd(p5, p6, p7, p12, NC, "tft");    // MOSI, MISO, SCK, /ChipSelect, /reset, name
+RA8875 lcd(PTD2, PTD3, PTD1, PTD0, NC, "tft");    // MOSI, MISO, SCK, /ChipSelect, /reset, name
     
-    pc.baud(460800);                            // I like a snappy terminal, so crank it up!
-    pc.printf("\r\nRA8875 Soft Fonts - Build " __DATE__ " " __TIME__ "\r\n");
+   pc.baud(115200);    
+   pc.printf("\r\nRA8875 Soft Fonts - Build " __DATE__ " " __TIME__ "\r\n");
 
     lcd.init();
     
@@ -47,7 +56,7 @@
     lcd.puts("BPG_Arial63x63");
 
     pc.printf("PrintScreen activated ...\r\n");
-    RetCode_t r = lcd.PrintScreen(0,0,480,272,"/local/file.bmp");
+    RetCode_t r = lcd.PrintScreen(0,0,480,272,"/sd/file.bmp");
     pc.printf("  PrintScreen returned %d\r\n", r);
     
     while(1) {