Set row pins as outputs, fix duplicate ROW5

Set the pin direction for PC0-PC4 and PC7 to output so the rows can pull
down hard
Added an OR-check to keep PC7 high when the rowcount is 7 (since it
already went high on rowcount 5)