Description
I’ve been using littlevgl with a monochrome display so far, setting styles manually. I’ve been using lv_theme_mono_init
to get a theme
variable from which I copied styles, altered them and set them to objects. Now I realized that the idea is to use lv_theme_set_current
after loading, so that all styles are applied to all objects types. The problem is that now that I added this call, on my pixel callback, I’m not receiving any calls with a white color, only black pixels. This has the effect of drawing over previous data without erasing the affected background to set it white again (for example, when I change a label text).
Now I’m wondering how does littlevgl deals with monochrome displays. Should I set something else (like setting the background color of elements to white)? It would seem as if the background of objects is now considered transparent and not cleared when changes.
What MCU/Processor/Board and compiler are you using?
I’m using STM32L4, over NuttX.
What do you want to achieve?
Drawing on monochrome display using mono theme.
What have you tried so far?
Setting the mono theme and not setting it. It works when not setting it.
Code to reproduce
Not sure which code is relevant, let me know and I’ll paste what you need.