I have a few MAX7219 modules that use a different column assignment and the 2 already implemented orientations did not work for me. After these changes DisplayRotate 1 and DisplayRotate 3 commands do what they are supposed to do.