8x8 RGB Matrix display

Hello

I'm use 8x8 RGB Matrix and color sheild V1.1 and connect to arduino mega 2560.
I use libary RGBMatrix.h and i change pin rigster in RGBMatrix.cpp to connect PORTD, PORTL, PORTK
in Attach File.
But it not work. When i used with arduino uno and not change RGBMatrix.cpp, it work fine.

Sorry for bad english.
Thank You for Answer.

RGBMatrix.cpp (11.4 KB)

Cross posts deleted
Please post one topic only once..