fbcp-ili9341
fbcp-ili9341 copied to clipboard
please help..the driver code works, but screen is inverted (reversed)
Hi I have the driver compiled and running. It works fine in the default landscape mode.
I commented out the // #define DISPLAY_OUTPUT_LANDSCAPE
When I run ./fbcp-ili9341 , the screen comes up in portrait mode, but it is backwards (inverted), like a mirror image (the text is backwards).
rotate options wont fix it because that will only rotate it.. I need to reverse the actual image.
How do I fix this ?
Thanks
./fbcp-ili9341 bcm_host_get_peripheral_address: 0x20000000, bcm_host_get_peripheral_size: 33554432, bcm_host_get_sdram_address: 0x40000000 BCM core speed: current: 300000000hz, max turbo: 400000000hz. SPI CDIV: 12, SPI max frequency: 33333333hz Allocated DMA channel 7 Allocated DMA channel 1 Enabling DMA channels Tx:7 and Rx:1 DMA hardware register file is at ptr: 0xb4b3d000, using DMA TX channel: 7 and DMA RX channel: 1 DMA hardware TX channel register file is at ptr: 0xb4b3d700, DMA RX channel register file is at ptr: 0xb4b3d100 Resetting DMA channels for use DMA all set up Initializing display Resetting ili9488 display at reset GPIO pin 27 InitSPI done Relevant source display area size with overscan cropped away: 720x480. Source GPU display is 720x480. Output SPI display is 320x480 with a drawable area of 320x480. Applying scaling factor horiz=0.44x & vert=1.00x, xOffset: 0, yOffset: 0, scaledWidth: 320, scaledHeight: 480 Creating dispmanX resource of size 320x480 (aspect ratio=0.666667). GPU grab rectangle is offset x=0,y=0, size w=320xh=480, aspect ratio=0.666667 All initialized, now running main loop...
Try toggling either the column address order swap, or the row address order swap in MADCTL register. See https://github.com/juj/fbcp-ili9341/blob/486a32e7f23b41d49b0e9da4845a86709f6f9c8a/ili9488.cpp#L47
Hi, I'm in the same boat. What do you mean by toggling? Do I comment out each line then recompile? I'm using a 2.8" ili9488 screen if that helps
For Kedei 3.5inch tft display I solved this problem by adding display_rotate=0x10000 to bottom of /boot/config.txt ps: to be sure do not reboot cut the power from raspberry and plug it again.