This is something I forgot to add into the HyperPixel4 dtoverlay- the only way to rotate the touchscreen I’m aware of is to do it at the driver level. I’ve fixed the software to do this:
- Replace your /boot/overlays/hyperpixel4.dtbo with https://github.com/pimoroni/hyperpixel4/blob/master/dist/hyperpixel4.dtbo
- Change your
/boot/config.txtso thatdtoverlay=hyperpixel4readsdtoverlay=hyperpixel4:rotate - Keep the
display_rotate=1command you already have in place
For anyone who installs this new software (as of today) you just need to make these two changes in /boot/config.txt:
- Change
display_rotate=3todisplay_rotate=1 - Change
dtoverlay=hyperpixel4todtoverlay=hyperpixel4:rotate