I am new at lvgl. I use lvgl 8.3 version with c language. I am a litte bit confused about drive my 4 gray scale display(2 bits for each color). The available colors for my display are 00(black), 01(dark gray), 10(light gray), 11(white).
I have wrote a set_px_cb function to update the buffer according to my display (waveshare 4.2 inch e-ink). But I am confused about color settings. What should be the color depth and how should I map color to 2 bits.
Thank you for your help. I am gladful for your support!
This should work with 24-bit/32-bit RGB colours, you can probably experiment with different formats to see which gives the best performance versus image quality. I am unsure how you have implemented your buffer logic so you may need to adjust the code to suite your implementation but hopefully you can see from this what to do.