how to rotate matrix scroll by 90 degrees in code