Led matrix brightness problem

szacpp:
Without loop it's working same. now can i use that code?

I don't understand your question.