Forked para SNOCC
Fork of RA8875 by
Diff: RA8875.cpp
- Revision:
- 49:c5182231d1b9
- Parent:
- 47:d96a09269f91
- Child:
- 51:aa1f57b81da1
--- a/RA8875.cpp Thu Mar 13 22:56:32 2014 +0000 +++ b/RA8875.cpp Thu Mar 13 23:17:10 2014 +0000 @@ -1183,6 +1183,24 @@ bool SuppressSlowStuff = false; +void TextWrapTest(RA8875 & display, Serial & pc) +{ + if (!SuppressSlowStuff) + pc.printf("Text Wrap Test\r\n"); + display.background(Black); + display.foreground(Blue); + display.cls(); + display.Backlight_u8(255); + display.puts(0,0, "Text Wrap Test.\r\n"); + for (int i=2; i<24; i++) { + display.printf("L%2d:\\n\n", i); + if (!SuppressSlowStuff) + wait_ms(200); + } + if (!SuppressSlowStuff) + wait_ms(3000); +} + void TextCursorTest(RA8875 & display, Serial & pc) { const char * iCursor = "The I-Beam cursor should be visible for this text.\r\n"; @@ -1647,6 +1665,7 @@ t.start(); // do stuff fast TextCursorTest(display, pc); + TextWrapTest(display, pc); BacklightTest(display, pc, 0); BacklightTest2(display, pc); ExternalFontTest(display, pc); @@ -1682,7 +1701,7 @@ { int q = 0; int automode = 0; - const unsigned char modelist[] = "BDWtGLlFROTPCEb"; // auto-test in this order. + const unsigned char modelist[] = "BDWtGLlFROTPCEbw"; // auto-test in this order. while(1) { pc.printf("\r\n" @@ -1695,7 +1714,7 @@ "C - Circles E - Ellipses\r\n" "A - Auto Test mode S - Speed Test\r\n" "p - print screen r - reset \r\n" - "l - layer test \r\n" + "l - layer test w - wrapping text \r\n" #ifdef DEBUG "0 - clear performance 1 - report performance\r\n" #endif @@ -1735,6 +1754,9 @@ case 't': TextCursorTest(lcd, pc); break; + case 'w': + TextWrapTest(lcd, pc); + break; case 'F': ExternalFontTest(lcd, pc); break;