how to rotate matrix scroll by 90 degrees in code

Just rotate your character definitions.

Just write down the columns as rows.