Open Neothai opened 3 weeks ago
hi,
given the square-ish shape it looks like cfg.offset_rotation = 1
(or another value up to 3) is needed for the panel config
hscync/vsync values seem to need adjustment too, but first fix the rotation
Thank you for your advice, but setting cfg.offset_rotation
from 0-3 still doesn't work.
...
cfg.offset_x = 0;
cfg.offset_y = 0;
cfg.offset_rotation = 0; // <- I've tried entering values from 0-3, but still doesn't work!
If you need information about this display and other information, It's already on top.
What should I do next?
but still doesn't work!
this is an issue tracker, not a customer service, the quality of the support you get is as good as the feedback you give
Here is a picture of the results I got.
cfg.offset_rotation = 0
cfg.offset_rotation = 1
cfg.offset_rotation = 2
cfg.offset_rotation = 3
thanks,
offset rotation 1 and 3 don't show the cropped square, so there's progress, I suggest you keep cfg.offset_rotation=1
for the meantime
I don't read Chinese and can't make much of the datasheet but it also looks like hsync/vsync values need to be adjusted with values provided by the vendor:
cfg.hsync_front_porch = 20;//10;
cfg.hsync_pulse_width = 1;//8;
cfg.hsync_back_porch = 42;//50;
cfg.vsync_front_porch = 4;//10;
cfg.vsync_pulse_width = 10;//8;
cfg.vsync_back_porch = 12;//20;
https://drive.google.com/file/d/1A29h3aU8qUe2CzuJNajd-pa8o6-KBBN1/view?usp=sharing <-- Sample code from seller
unfortunately the google drive zip file is invalid and/or infected and I can't compare your values with the recommended settings
error: invalid zip file with overlapped components (possible zip bomb)
To unzip the file anyway, rerun the command with UNZIP_DISABLE_ZIPBOMB_DETECTION=TRUE environmnent variable
if the answer is yes to both questions please share the code of that sample ( try https://gist.new ) so we can compare the configurations
unfortunately the google drive zip file is invalid and/or infected and I can't compare your values with the recommended settings
I edited the file (on the original link) so I expect you should be able to open it normally.
did you manage to unzip the zip archive?
Yes, I unzip the zip archive and I have access to all the files normally.
does the sample code work with your display?
I have not yet tried out the code I received. Because the example the seller sent me has the project format used in ESP-IDF (the seller said there is no example code for Arduino IDE) and now I am developing my project on Arduino IDE(ArduinoESP32 V2 .0.17) only
esp-idf calls this variant LCD_5r0_480x854, so you can try to invert the height/width values
cfg.memory_width = 480
cfg.memory_height = 854;
cfg.panel_width = 480;
cfg.panel_height = 854;
you may have to adjust cfg.offset_rotation
again during your tests though
esp-idf calls this variant LCD_5r0_480x854, so you can try to invert the height/width values
The results look much better than before! And this is an illustration.
cfg.offset_rotation = 0
cfg.offset_rotation = 1
cfg.offset_rotation = 2
cfg.offset_rotation = 3
could it be that pin_vsync and pin_hsync need to inverted too?
cfg.pin_vsync = 17;
cfg.pin_hsync = 47;
could it be that pin_vsync and pin_hsync need to inverted too?
I tested it and the result was that nothing was displayed on the screen and everything was black.
Could the incorrect display of the display be related to the ST7701s init command? I noticed that this display has SPI+RGB communication.
init commands sequences are hardcoded for this panel, but there is another variant of Panel_ST7701
that you may want to try: Panel_ST7701_guition_esp32_4848S040
that you may want to try:
Panel_ST7701_guition_esp32_4848S040
This is the result
colors can be adjusted with cfg.invert
and cfg.rgb_order
(both booleans) options
that deinterlacing effect is similar to what you had with the Panel_ST7701
with cfg.offset_rotation = 2
so the init sequence is probably not the cause and I'm out of ideas
Carefully written Issues are more likely to be given priority. 丁寧に記述された報告は優先して対応される可能性が高くなります。
Environment ( 実行環境 )
Problem Description ( 問題の内容 )
Display details: ST7701s Driver IC 5inch 854*480 pixel IPS RGB+SPI Interface | Support RGB565, RGB666 and RGB888 Color 2388602012亦亞徽EP5008S-DCT规格书.pdf <--Datasheet https://item.taobao.com/item.htm?id=750263137747 <-- I bought it from here. https://drive.google.com/file/d/1A29h3aU8qUe2CzuJNajd-pa8o6-KBBN1/view?usp=sharing <-- Sample code from seller
Problem: The image on the display does not display properly. distorted and some parts missing
https://github.com/lovyan03/LovyanGFX/assets/123863242/a4b13c87-4761-4d22-89d0-dd6b247b7b24
Expected Behavior ( 期待される動作 )
Want the display to display normally Not distorted and missing
Actual Behavior ( 実際の動作 )
The image on the display does not display properly. distorted and some parts missing
Code to reproduce this issue ( 再現させるためのコード )
Please submit complete source code that can reproduce your problem. あなたの問題を再現できる完全なソースコードを提示してください。
Code
```cpp #include