Library to control a Graphics TFT connected to 4-wire SPI - revised for the Raio RA8875 Display Controller.

Dependents:   FRDM_RA8875_mPaint RA8875_Demo RA8875_KeyPadDemo SignalGenerator ... more

Fork of SPI_TFT by Peter Drescher

See Components - RA8875 Based Display

Enhanced touch-screen support - where it previous supported both the Resistive Touch and Capacitive Touch based on the FT5206 Touch Controller, now it also has support for the GSL1680 Touch Controller.

Offline Help Manual (Windows chm)

/media/uploads/WiredHome/ra8875.zip.bin (download, rename to .zip and unzip)

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Thu Mar 13 23:17:10 2014 +0000
Parent:
47:d96a09269f91
Child:
51:aa1f57b81da1
Commit message:
Create a simple test for the vertical line wrapping.

Changed in this revision

RA8875.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;