Lib for the new LCD Display with ILI9341 controller supporting two displays

Dependents:   CANary_9341_test CANary_9341 CANary

Fork of SPI_TFT_ILI9341 by Peter Drescher

Revision:
10:aca12a61d2b1
Parent:
0:da1bf437cbc1
--- a/GraphicsDisplay.cpp	Mon May 12 03:18:44 2014 +0000
+++ b/GraphicsDisplay.cpp	Sun May 18 12:45:24 2014 +0000
@@ -113,7 +113,7 @@
     blitbit(column * 8, row * 8, 8, 8, (char*)&(FONT8x8[value - 0x1F][0]));
 }
 
-void GraphicsDisplay::window(unsigned int x,unsigned  int y,unsigned  int w,unsigned  int h) {
+void GraphicsDisplay::gdwindow(int x, int y, int w, int h) {
     // current pixel location
     _x = x;
     _y = y;
@@ -139,7 +139,7 @@
 }
 
 void GraphicsDisplay::fill(int x, int y, int w, int h, int colour) { 
-    window(x, y, w, h);
+    gdwindow(x, y, w, h);
     for(int i=0; i<w*h; i++) {
         putp(colour);
     }
@@ -150,14 +150,14 @@
 }
     
 void GraphicsDisplay::blit(int x, int y, int w, int h, const int *colour) { 
-    window(x, y, w, h);
+    gdwindow(x, y, w, h);
     for(int i=0; i<w*h; i++) {
         putp(colour[i]);
     }
 }
     
 void GraphicsDisplay::blitbit(int x, int y, int w, int h, const char* colour) {
-    window(x, y, w, h);
+    gdwindow(x, y, w, h);
     for(int i = 0; i < w*h; i++) {
         char byte = colour[i >> 3];
         int offset = i & 0x7;
@@ -173,4 +173,3 @@
 int GraphicsDisplay::rows() { 
     return height() / 8; 
 }
-