Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp_lcd: ST7789V display offset issue (IDFGH-14574) #15331

Closed
3 tasks done
jomoly opened this issue Feb 4, 2025 · 1 comment
Closed
3 tasks done

esp_lcd: ST7789V display offset issue (IDFGH-14574) #15331

jomoly opened this issue Feb 4, 2025 · 1 comment
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@jomoly
Copy link

jomoly commented Feb 4, 2025

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.4.0

Espressif SoC revision.

esp32-s3r8

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

CMD

Development Kit.

esp32-s3r8

Power Supply used.

USB

What is the expected behavior?

I am using ST7789V LCD (240x320) with esp_idf examples - i80_controller, it should show a FULL screen with esp logo and fps/cpu info, that is -

  • Display content should start from the top of the screen (0,0)
  • Full 240x320 resolution should be visible
  • No display offset or noise

What is the actual behavior?

When using ST7789V LCD (240x320) with esp_lcd component, there's a display offset issue:

  1. Top 20 pixels show noise/garbage
  2. Display content is shifted down by 20 pixels
  3. Bottom 20 pixels are cut off/not visible

Steps to reproduce.

  1. Setup ESP32-S3 with ST7789V LCD (240x320)
  2. Use esp_lcd component with default ST7789V driver
  3. Run any example that displays content (e.g., lcd_i80_display example)
  4. Observe the display offset issue

Debug Logs.


More Information.

No response

@jomoly jomoly added the Type: Bug bugs in IDF label Feb 4, 2025
@github-actions github-actions bot changed the title esp_lcd: ST7789V display offset issue esp_lcd: ST7789V display offset issue (IDFGH-14574) Feb 4, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Feb 4, 2025
jomoly added a commit to jomoly/esp-idf that referenced this issue Feb 4, 2025
The ST7789V LCD shows a 20-pixel offset issue due to missing
display window initialization. This commit adds proper CASET
and RASET commands in panel initialization to fix the problem.

Fixes espressif#15331
jomoly added a commit to jomoly/esp-idf that referenced this issue Feb 4, 2025
The ST7789V LCD shows a 20-pixel offset issue due to missing
display window initialization. This commit adds proper CASET
and RASET commands in panel initialization to fix the problem.

Fixes espressif#15331
@suda-morris
Copy link
Collaborator

Hi @jomoly If you see the top 20 lines are full of noise, it might lead by the following code

// the gap is LCD panel specific, even panels with the same driver IC, can have different gap value
esp_lcd_panel_invert_color(panel_handle, true);
esp_lcd_panel_set_gap(panel_handle, 0, 20);

In your project, you can comment out the esp_lcd_panel_set_gap. Please let me know if this can help.

@suda-morris suda-morris removed the Type: Bug bugs in IDF label Feb 5, 2025
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants