Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Keypad RA8875 SDFileSystem mbed
Fork of RA8875_Demo by
Diff: main.cpp
- Revision:
- 13:3f6204d6140a
- Parent:
- 12:e8a127d78000
- Child:
- 14:d71b1aa3c8bf
diff -r e8a127d78000 -r 3f6204d6140a main.cpp
--- 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) {
