apache / apache/nuttx-apps

[BUG] LVGL display demo error

Open
#2,936 0 comments 0 reactions 0 assignees View on GitHub
Type: Bug
Dominant language
C
Stars
465
Forks
779
Avg merge
2d 9h
Merged PRs (30d)
36

Description

### Description / Steps to reproduce the issue

When I use the LVGL demo, there is a display issue. The fb0 can be found under the device directory and the screen lights up. In the LVGL configuration, fb0 is correctly set to be enabled by default, and the display works. However, there is an issue where the screen shows a repeated image and the colors are incorrect. I have seen similar issues on other forums, but no correct solution has been provided. What could be the cause of this problem? The version of LVGL being used is 8.3.2.
step1 :
The device is registered under the device directory using the video component, and fb0 can be found and detected.

step2:The parameters passed to lv_port_fbdev.c are exactly the same as I have set. The resolution is 1024 * 768, the color format is FB_FMT_RGB32, the bpp is set to 32, fblen is set to 1024 * 32 / 8 * 768, and the stride is set to 1024 * 32 / 8.

step3: run the demo;

![20250110160205](https://github.com/user-attachments/assets/adcedafd-d74c-420a-b404-a92615714641)

### On which OS does this issue occur?

[OS: Linux]

### What is the version of your OS?

Ubuntu22.04

### NuttX Version

releases/12.4

### Issue Architecture

[Arch: arm64]

### Issue Area

[Area: Graphics]

### Verification

- [X] I have verified before submitting the report.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.