0 is the normal configuration. 1 is 90 degrees. 2 is 180 degress. 3 is 270 degrees.
https://www.raspberrypi-spy.co.uk/2017/11/how-to-rotate-the-raspberry-pi-display-output/