juj / fbcp-ili9341

A blazing fast display driver for SPI-based LCD displays for Raspberry Pi A, B, 2, 3, 4 and Zero
MIT License
1.62k stars 270 forks source link

ILI9488 Portrait Mode Help #222

Open cherbin opened 3 years ago

cherbin commented 3 years ago

Hello, I got the portrait mode to work by adding the following in the ILI9488.cpp madctl |= MADCTL_COLUMN_ADDRESS_ORDER_SWAP;

The problem now is it says the width is 480 (long side) and the height is 720 (short) side

How do I fix this ?

juj commented 3 years ago

To enable portrait mode, try removing the landscape mode define in config.h: https://github.com/juj/fbcp-ili9341/blob/486a32e7f23b41d49b0e9da4845a86709f6f9c8a/config.h#L161

DansDesigns commented 1 year ago

I tried both the OP method and jul's method but neither work for making my 3.5" ili9488 screen..