lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
208 stars 140 forks source link

Run on Raspberry pi zero but get two same contents in one frame #31

Closed HapCoderWei closed 1 year ago

HapCoderWei commented 1 year ago

Hello, i compiled this project and run it on my raspberry pi zero system, and then it display as two same picture at the same time. Hardware and System is as below: Hardware: Raspberry Pi Zero W Rev 1.1 OS: Raspbian GNU/Linux 11 (bullseye) armv6l Kernel: 5.15.84+

The display is a 240x240 TFT screen which displays the /dev/fb0 content by the fbtft repo, so it should work as a laptop display. I also compiled this project on my ubuntu laptop, which is work well as this blog(https://blog.lvgl.io/2018-01-03/linux_fb).

So does anyone know the difference, thanks! lvgl_rpi

HapCoderWei commented 1 year ago

Oh, i figure it out! I changed the LV_COLOR_DEPTH to 16 from 32 in lv_conf.h which is the reason. After write LV_COLOR_DEPTH=32 the display is work well. This issue have been solved! Best wishes.