adafruit 2.8 tft lcd install buster price
The IF statement was added as a rotation correction for the 320x240-display in the old implementation (with fbtft_device), I think in the current version only those two lines are required:
The order of the WIDTH and HEIGHT values is related to the order in PITFT_TYPES, because those values are used for the size of the HDMI monitor resolution. So it should be changed like this: