This library works with only my pcb

Fork of Adafruit_LEDBackpack by Luiz Hespanha

Revision:
2:88646e1763c6
Parent:
1:f066d5347c60
--- a/Adafruit_LEDBackpack.cpp	Fri Aug 16 15:44:44 2013 +0000
+++ b/Adafruit_LEDBackpack.cpp	Sun May 03 01:15:52 2015 +0000
@@ -73,20 +73,30 @@
 }
 
 void Adafruit_LEDBackpack::clear(void) {
-  for (uint8_t i=0; i<8; i++) {
+  for (uint8_t i=0; i<16; i++) {
     displaybuffer[i] = 0;
   }
 }
 
-Adafruit_8x8matrix::Adafruit_8x8matrix(I2C *i2c) : Adafruit_LEDBackpack(i2c), Adafruit_GFX(8, 8) {
+Adafruit_8x8matrix::Adafruit_8x8matrix(I2C *i2c) : Adafruit_LEDBackpack(i2c), Adafruit_GFX(16, 16) {
 }
 
 void Adafruit_8x8matrix::drawPixel(int16_t x, int16_t y, uint16_t color) {
-  if ((y < 0) || (y >= 8)) return;
-  if ((x < 0) || (x >= 8)) return;
+  if ((y < 0) || (y >= 16)) return;
+  if ((x < 0) || (x >= 16)) return;
 
  // check rotation, move pixel around if necessary
   switch (getRotation()) {
+  case 0:
+    if(y>=8){
+        y+=16;
+    }
+    if(x>=8){
+        x-=8;
+        y+=8;
+    }
+    swap(x,y);
+    break;
   case 1:
     swap(x, y);
     x = 8 - x - 1;
@@ -101,9 +111,11 @@
     break;
   }
 
+ #if    0
   // wrap around the x
   x += 7;
   x %= 8;
+#endif
 
 
   if (color) {