KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
59:fb40aad4efd4
Parent:
58:26658a56112a
Child:
60:2dfd574f63bd
--- a/RA8875.cpp	Sat Jul 05 15:59:55 2014 +0000
+++ b/RA8875.cpp	Thu Jul 24 00:41:37 2014 +0000
@@ -1486,13 +1486,19 @@
     display.foreground(Blue);
     display.window(0,0, display.width(), display.height());
     display.cls();
-    display.puts(0,0, "Web Color Test\r\n");
-    display.SetTextFontSize(1,2);
+    display.SetTextFontSize(1,1);
+    display.puts(200,0, "Web Color Test");
+    display.SetTextCursor(0,0);
+    display.puts("  ");
+    for (int i=0; i<16; i++)
+        display.printf("%X", i&0xF);
+    display.puts("\r\n0 ");
     for (int i=0; i<sizeof(WebColors)/sizeof(WebColors[0]); i++) {
         display.background(WebColors[i]);
         display.puts(" ");
-        if (i % 36 == 35)
-            display.puts("\r\n");
+        if (i % 16 == 15 && i < 255) {
+            display.printf("\r\n%X ", ((i+1)/16));
+        }
     }
     display.SetTextFontSize(1,1);
 }
@@ -1784,6 +1790,8 @@
     wait(3);
 
     int r = display.RenderBitmapFile(0,0, "/local/TestPat.bmp");
+    if (!SuppressSlowStuff)
+        pc.printf("  returned %d\r\n", r);
 }