How to rotate the WaveShare WS170120 HDMI/USB touchscreen on a Raspberry Pi 4

We’re developing a new product at work, and used a WaveShare WS170120 7″ HDMI/USB touchscreen and a Raspberry Pi 4 during the control prototyping. The 7″ touchscreen had to be rotated by 90 degrees, and working out how to do this wasn’t that straightforward, so I thought I’d publish it just in case it helps… Continue reading How to rotate the WaveShare WS170120 HDMI/USB touchscreen on a Raspberry Pi 4