However: After setting the rotation to 90 and having it now render in the correct direction, all of my touch inputs were off by 90 degrees. I fixed this by going to /etc/X11/xorg.conf.d/99-calibration.conf and changing the values to the setting that the script currently uses for a rotation of 0, i.e.:
I used kalipi-tft-config just now on my Raspberry Pi 400 to set up my PiTFT Plus 480x320 3.5" resistive touch screen (on Kali).
The default rotation of 270 was upside down; changing it to 90 displayed correctly. (90 is also suggested for this screen here: https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/easy-install-2) You could argue that either direction is fine on a regular Pi and it's just the 400 that makes it weird, of course :)
However: After setting the rotation to 90 and having it now render in the correct direction, all of my touch inputs were off by 90 degrees. I fixed this by going to
/etc/X11/xorg.conf.d/99-calibration.conf
and changing the values to the setting that the script currently uses for a rotation of 0, i.e.:After setting it to these values, the touch inputs seem to work correctly now.