pebri86 / esplay-base-firmware

Bootloader or sdcard flasher for ESPlay HW ESP32 based device, based on odroid go base firmware
56 stars 22 forks source link

Screen orientation is wrong #9

Closed SunnyIMG closed 2 years ago

SunnyIMG commented 2 years ago

The screen is mirrored, and the orientation is wrong, so I want to ask where can I change the screen orientation and mirroring?

pebri86 commented 2 years ago

hi, may i ask you some question. did you use your own hardware/board? did you installed from your own compiled or from released?

SunnyIMG commented 2 years ago

@pebri86 It's like this, I saw someone else's modified hardware on https://oshwhub.com/zxp1107/esplay_copy_copy_copy, and someone has made it successfully. At present, there is only a problem with my screen. It may be that I bought the wrong one. , may need to modify the screen initialization code? But I don't know where to modify it.

SunnyIMG commented 2 years ago

I flashed the bootloader in the release, lcd is still the same wrong

pebri86 commented 2 years ago

can you confirm the lcd controller type?

pebri86 commented 2 years ago

Screenshot_2022-03-31-16-33-23-847_com.github.android.jpg

if you use master branch try change line 344 to false in swap x y

SunnyIMG commented 2 years ago

你能确认液晶控制器的类型吗?

yes. ili9341v

SunnyIMG commented 2 years ago

Screenshot_2022-03-31-17-40-53-36_090d9ae461b065ca11c329abb9cd0d70

pebri86 commented 2 years ago

Screenshot_2022-03-31-16-33-23-847_com.github.android.jpg

if you use master branch try change line 344 to false in swap x y

also you can add this code

​esp_lcd_panel_mirror​(​panel_handle, ​true, ​false); try every combination true and false value until it displayed correctly

SunnyIMG commented 2 years ago

And the screen display is mirrored, will it also be solved this way?

SunnyIMG commented 2 years ago

截图_2022-03-31-16-33-23-847_com.github.android.jpg

如果您使用主分支 尝试在交换 xy 中将第 344 行更改为 false

您也可以添加此代码

​esp_lcd_panel_mirror​(​panel_handle, ​true, ​false); 尝试每个组合真假值,直到它正确显示

I just need to open main.c, then compile esplay-base-firmware.bin, is it ok to flash in?