Git Product home page Git Product logo

Comments (15)

tobozo avatar tobozo commented on July 19, 2024

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

from lovyangfx.

Neothai avatar Neothai commented on July 19, 2024

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?

from lovyangfx.

tobozo avatar tobozo commented on July 19, 2024

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

from lovyangfx.

Neothai avatar Neothai commented on July 19, 2024

Here is a picture of the results I got.

cfg.offset_rotation = 0

rotation0_s

cfg.offset_rotation = 1

rotation1_s

cfg.offset_rotation = 2

rotation2_s

cfg.offset_rotation = 3

rotation3_s

from lovyangfx.

tobozo avatar tobozo commented on July 19, 2024

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
  • did you manage to unzip the zip archive?
  • does the sample code work with your display?

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

from lovyangfx.

Neothai avatar Neothai commented on July 19, 2024

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

from lovyangfx.

tobozo avatar tobozo commented on July 19, 2024

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

from lovyangfx.

Neothai avatar Neothai commented on July 19, 2024

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

newRotation0_s


cfg.offset_rotation = 1

newRotation1_s


cfg.offset_rotation = 2

newRotation2_s


cfg.offset_rotation = 3

newRotation3_s

from lovyangfx.

tobozo avatar tobozo commented on July 19, 2024

could it be that pin_vsync and pin_hsync need to inverted too?

            cfg.pin_vsync   = 17;
            cfg.pin_hsync   = 47;

from lovyangfx.

Neothai avatar Neothai commented on July 19, 2024

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.

from lovyangfx.

tobozo avatar tobozo commented on July 19, 2024

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

from lovyangfx.

Neothai avatar Neothai commented on July 19, 2024

that you may want to try: Panel_ST7701_guition_esp32_4848S040

This is the result
Picture2

from lovyangfx.

tobozo avatar tobozo commented on July 19, 2024

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

from lovyangfx.

github-actions avatar github-actions commented on July 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from lovyangfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.