pimoroni / hyperpixel4

Driver for the Pimoroni HyperPixel 4.0" Touchscreen Display
https://shop.pimoroni.com/products/hyperpixel-4?variant=12569485443155
329 stars 47 forks source link

Hyper pixel 4 square touch #211

Open addohm opened 8 months ago

addohm commented 8 months ago

How do you rotate the touch? I need to invert the screen but the touch still follows the "upside down" method in desktop. I have pi 5 running 64 bit bookworm.

I got the screen working with a simple dtoverlay=vc4-kms-dpi-hyperpixel4sq dtparam=rotate=180 didn't seem to do the trick.

addohm commented 8 months ago

Referencing: https://github.com/raspberrypi/linux/blob/0ac970bd2668fe68da8a24b73e74ee5d2b64cf89/arch/arm/boot/dts/overlays/README#L4382 Im able to get the screen rotated, and the correct x motion, but dtoverlay=vc4-kms-dpi-hyperpixel4sq,rotate=180,touchscreen-inverted-x,touchscreen-inverted-y doesn't seem to affect the Y motion.