Forked para SNOCC

Dependencies:   GPS

Dependents:   SNOCC_V1 SNOCC_V2

Fork of RA8875 by SNOCC

Revision:
50:2c4f474a2453
Parent:
44:207594dece70
Child:
51:aa1f57b81da1
--- a/RA8875.cpp	Mon Mar 10 23:53:40 2014 +0000
+++ b/RA8875.cpp	Sat Mar 15 17:35:51 2014 +0000
@@ -72,7 +72,7 @@
 //}
 
 
-RetCode_t RA8875::SelectLayer(uint16_t layer)
+RetCode_t RA8875::SelectDrawingLayer(uint16_t layer)
 {
     unsigned char mwcr1 = ReadCommand(0x41) & ~0x01; // retain all but the currently selected layer
 
@@ -1156,11 +1156,14 @@
         WriteCommand(0x20, 0x80);               // DPCR - 2-layer mode
     }
     
-    // Clear ram image
+    // Set display image to Blue on Black as default
     window(0,0, width, height);             // Initialize to full screen
     SetTextCursorControl();
     foreground(Blue);
     background(Black);
+    SelectDrawingLayer(1);
+    cls();
+    SelectDrawingLayer(0);
     cls();
     return noerror;
 }
@@ -1424,7 +1427,7 @@
     if (!SuppressSlowStuff)
         pc.printf("Layer Test\r\n");
 
-    display.SelectLayer(0);
+    display.SelectDrawingLayer(0);
     display.background(Black);
     display.foreground(Blue);
     display.cls();
@@ -1443,7 +1446,7 @@
     if (!SuppressSlowStuff)
         wait_ms(1000);
 
-    display.SelectLayer(1);
+    display.SelectDrawingLayer(1);
     display.background(Black);
     display.foreground(Yellow);
     display.cls();
@@ -1460,7 +1463,7 @@
     if (!SuppressSlowStuff)
         wait_ms(2000);
 
-    display.SelectLayer(0);
+    display.SelectDrawingLayer(0);
     display.SetLayerMode(0);        // Show Layer 0 again
     if (!SuppressSlowStuff)
         wait_ms(1000);