Led matrix brightness problem

You fixed it now. Because you didn't use code tags, the[i] disappeared from that line of code.