I'm trying the library with your eBay matrix module, i have simplifyed the code for only drawing an expanding / contracting rectangle
#include <avr/io.h>
#include "LedMatrix.h"
LedMatrix ledDisplay = LedMatrix(51, 53, 52, 16, 16);
void setup()
{
ledDisplay.init(8);
ledDisplay.blank();
ledDisplay.update();
Serial.begin(9600);
}
void loop()
{
for (int i=0;i<16;i++) {
ledDisplay.rectangle(0,0,i,6,1);
ledDisplay.update();
Serial.println(i);
delay(50);
}
for (int i=16;i>0;i--) {
ledDisplay.rectangle(0,0,i,6,0);
ledDisplay.update();
Serial.println(i);
delay(50);
}
ledDisplay.blank();
ledDisplay.update();
}
I have only 2 modules cascaded,
when matrix is defined 16x16 it work
LedMatrix(51, 53, 52, 16, 16);
when matrix is defined 16x8
LedMatrix(51, 53, 52, 16, 8);
all the two matrix show the same thing and
when matrix is defined 8x16
LedMatrix(51, 53, 52, 8, 16);
only one matrix module (on the left) work.
Probably you not intend develop the library for use it rectangular matrix, but if a day you want make the work...