Demonstration of Soft Fonts
Fork of RA8875_Demo by
Demo of Software based fonts mixed with RA8875 hosted fonts.
Diff: main.cpp
- Revision:
- 13:43cc0a997c53
- Parent:
- 12:e8a127d78000
- Child:
- 14:07b3f223d9ba
--- a/main.cpp Sat Jan 23 17:55:47 2016 +0000 +++ b/main.cpp Sat Mar 05 19:24:18 2016 +0000 @@ -1,6 +1,6 @@ -#include "mbed.h" // v112 -#include "RA8875.h" // v102 +#include "mbed.h" // v115 +#include "RA8875.h" // v107 #include "MyFont18x32.h" #include "BPG_Arial08x08.h" #include "BPG_Arial10x10.h" @@ -10,6 +10,7 @@ LocalFileSystem local("local"); // Because I want <PrintScreen> Serial pc(USBTX, USBRX); // And a little feedback +Timer measurement; int main() { @@ -18,8 +19,8 @@ pc.baud(460800); // I like a snappy terminal, so crank it up! pc.printf("\r\nRA8875 Soft Fonts - Build " __DATE__ " " __TIME__ "\r\n"); - lcd.init(); - + measurement.start(); + lcd.init(480,272,16); // ************************** //RunTestSet(lcd, pc); // If the library was compiled for test mode... @@ -45,6 +46,7 @@ lcd.puts("BPG_Arial31x32\r\n"); lcd.SelectUserFont(BPG_Arial63x63); lcd.puts("BPG_Arial63x63"); + pc.printf("Time trial completed in %d uSec\r\n", measurement.read_us()); pc.printf("PrintScreen activated ...\r\n"); RetCode_t r = lcd.PrintScreen(0,0,480,272,"/local/file.bmp");