Hello,
I'm working on a project with a multi-color EPD display, using my custom display driver and LVGL. My display supports 3 colors (white, black, red), so the best option would be to use 4-bit pixels. Unfortunately, LVGL's minimum color depth for multi-color support is 8-bit, which is acceptable for my needs. However, Zephyr requires at least 16-bit color depth dsiplay.
To avoid wasting RAM unnecessarily, I've made some modifications to the lvgl_display.c
file to implement my own display callbacks, for example:
Currently, I’m modifying the source file directly in the SDK directory, and my question is: can I override this file during the build? I want to have my version of this file in project and linked it to final build. I checked CMake capabilities, but it doesn’t seem to offer an option to exclude a source file from the build. Is there a way to achieve this?