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
Revision 13:3f6204d6140a, committed 2016-02-23
- Comitter:
- unix_guru
- Date:
- Tue Feb 23 02:49:18 2016 +0000
- Parent:
- 12:e8a127d78000
- Commit message:
- K64F Version of RA8875_Demo
Changed in this revision
--- a/RA8875.lib Sat Jan 23 17:55:47 2016 +0000 +++ b/RA8875.lib Tue Feb 23 02:49:18 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/WiredHome/code/RA8875/#fc60bfa0199f +http://mbed.org/users/WiredHome/code/RA8875/#8d1d3832a215
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SDFileSystem.lib Tue Feb 23 02:49:18 2016 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/mbed_official/code/SDFileSystem/#7b35d1709458
--- 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) {
--- a/mbed.bld Sat Jan 23 17:55:47 2016 +0000 +++ b/mbed.bld Tue Feb 23 02:49:18 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/6f327212ef96 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/252557024ec3 \ No newline at end of file