Led matrix brightness problem

Thanks PaulRB.

PaulRB:
Try adding a delay(1000) at the end of matrixWriteBit().

I used delay at the end of matrixWriteBit(). now led brightness is 100% but problem is all leds are not turning on at the same time but one by one after one sec. I don't know how do i reduce duty cycle could you help me?