adafruit / Raspberry-Pi-Installer-Scripts

381 stars 160 forks source link

Running the PiTFT fbcp script with normal/0 results in portrait TFT #1

Closed dragon788 closed 6 years ago

dragon788 commented 7 years ago

Background: I had an installation of Raspbian that I upgraded to the latest, when it switched to the Pixel desktop, the PiTFT 3.5" was just showing a white/gray screen.

Procedure: I ran the script and selected the options below.

Preconfigured scenario or manual (4) 4 (manual) Device selection 4 (3.5" TFT) (specifically gen1) HDMI rotation (landscape/portrait 90/ landscape 180/ portrait 270) 1 (landscape) TFT Rotation (MADCTL) 0 / 90 / 180 / 270 1 (0 degrees rotation to match HDMI)

After selecting and confirming these options and rebooting the TFT came up in portrait mode which didn't match my expectations from my selections.

dragon788 commented 7 years ago

I ended up actually having to select option 4 for the TFT rotation (270 degrees) and the touchscreen calibration is still off, because it is assuming the original portrait rotation is the correct coordinates, except that the touches are only relative to the original portrait but happening in landscape.

If I touch at the * (upper left of portrait orientation) , I get a click at the # (upper left of landscape orientation).

_____________________
|   #           *   |
|                   |
|                   |
|                   |
--------------------
ladyada commented 6 years ago

script has been rewritten!