Forked para SNOCC
Fork of RA8875 by
Diff: RA8875.cpp
- Revision:
- 51:aa1f57b81da1
- Parent:
- 49:c5182231d1b9
- Parent:
- 50:2c4f474a2453
- Child:
- 52:e6039a823420
diff -r c5182231d1b9 -r aa1f57b81da1 RA8875.cpp --- a/RA8875.cpp Thu Mar 13 23:17:10 2014 +0000 +++ b/RA8875.cpp Sat Mar 15 17:40:46 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; } @@ -1442,7 +1445,7 @@ if (!SuppressSlowStuff) pc.printf("Layer Test\r\n"); - display.SelectLayer(0); + display.SelectDrawingLayer(0); display.background(Black); display.foreground(Blue); display.cls(); @@ -1461,7 +1464,7 @@ if (!SuppressSlowStuff) wait_ms(1000); - display.SelectLayer(1); + display.SelectDrawingLayer(1); display.background(Black); display.foreground(Yellow); display.cls(); @@ -1478,7 +1481,7 @@ if (!SuppressSlowStuff) wait_ms(2000); - display.SelectLayer(0); + display.SelectDrawingLayer(0); display.SetLayerMode(0); // Show Layer 0 again if (!SuppressSlowStuff) wait_ms(1000);