Help Coding a Direct Drive LED Matrix

Any explanation for the lack of brightness? It seems to predictably fade after the first 5 rows?