i'm not a C programmer but it looks like the line that says 4ms delay is your delay between rows. you could try making 259 a smaller number. i think that would get rid of your flicker but may make it even dimmer.
The faster the better is what I concluded with all the research I did in this area. Forget about any sort of delay on top of pulse width control. Just scan the thing like a bat out of hell.
Bookmarks