Closed gamemake-eng closed 1 month ago
Here is also a photo of my problem if that helps
It does look like wrong MIPI_DISPLAY_INVERT
setting. But if you already tried changing that, you could try using MIPI_DCS_ADDRESS_MODE_RGB
instead of MIPI_DCS_ADDRESS_MODE_BGR
.
You probably already saw this? I used these settings with some generic ST7735 display from AliExpress.
https://github.com/tuupola/hagl_pico_mipi/blob/master/cmake/generic-st7735-128x128.cmake
It does look like wrong
MIPI_DISPLAY_INVERT
setting. But if you already tried changing that, you could try usingMIPI_DCS_ADDRESS_MODE_RGB
instead ofMIPI_DCS_ADDRESS_MODE_BGR
.
I also tried that but it didn't work.
The only thing that worked was going into the display driver code and adding a line bellow the original invert code inside the init function to turn off the invert filter. The original code seems to be checking if MIPI_DISPLAY_INVERT
is defined so maybe it's being defined somewhere else.
Just to make sure, did you actually try to use MIPI_DISPLAY_INVERT=1
in the settings?
Just to make sure, did you actually try to use
MIPI_DISPLAY_INVERT=1
in the settings?
Yes I did. And as I said before, it did not work.
Now I see it. Not sure what I was thinking. The MIPI_DISPLAY_INVERT
is ignored in the code. Thanks for the heads up!
Now I see it. Not sure what I was thinking. The
MIPI_DISPLAY_INVERT
is ignored in the code. Thanks for the heads up!
That is what I was suspecting as well. I was planning to make a PR to attempt to fix it since the solution seemed simple.
Fixed in upstream and synced the HAL to latest version in here. Inversion logic works now. Thanks for the heads up!
Fixed in upstream and synced the HAL to latest version in here. Inversion logic works now. Thanks for the heads up!
You're welcome :-)
The demo compiled without any errors but, when I flashed the program onto the Pi Pico the screen looked inverted. I tried changing "MIPI_DISPLAY_INVERT" and some other variables in the Cmake file to no avail. I even tried to remove the invert definition but it changed nothing. Everything is also wired up correctly. My config is listed below.