Hoe to program 8x8 Homemade matrix

Hello,
I am trying to program my homemade 8x8 LED matrix, with MAX7219ewg chip and i don't know what code our library to use. I have tried MD_721xx and LedControl libraries, but unfortunetely it's not working... So the question is: how should I write my code, our what library should I use?


This is how, I have connected my matrix, this is just identical copy of my circuit.

Code link down below;

You have some code you didn't post. It does something that you didn't describe. You want it to do something that you didn't describe.

You can't get from point A to point B if you haven't a clue where point A or B are.