How to manage 8 colors (RGB111) LCD's?

Description

HI everyone! I just discovered LittlevGL and started studying it for a new project that is supposed to use a JDI 8 colors MIP display. In order to use the ultra low power MIP features I need to use the RGB111 format.

What MCU/Processor/Board and compiler are you using?

PC simulator so far, final MPU might be an MSP430 or an STM32

What do you want to achieve?

As the 1 byte depth structure has the RGB bits, I wanted to see if there’s a way to manage 8 colors instead of monochrome display.

What have you tried so far?

Browsed the sources a little… :slight_smile:

Code to reproduce

Screenshot and/or video

Use the RGB232 mode, then in the flush callback (where you transfer buffer into the actual display) pick only the most significant bits for each color and send those to the display.

JW

Thank you, Jan. I considered that but I thought that setting LV_COLOR_DEPTH to 8 would increase data size compared to a depth of 1… But I realize now I just got confused! :woozy_face:
That will definitely work for me, thank you again.

Paolo

You can use the set_px_cb in your display driver to handle custom color formats.
https://docs.littlevgl.com/en/html/porting/display.html

Thank you, I’ll check that too. :ok_hand: