yelll
April 24, 2023, 9:05am
1
Important: unclear posts may not receive useful answers.
Before posting
Get familiar with Markdown to format and structure your post
Be sure to update lvgl from the latest version from the master
branch.
Be sure you have checked the FAQ and read the relevant part of the documentation .
If applicable use the Simulator to eliminate hardware related issues.
Delete this section if you read and applied the mentioned points.
Description
What MCU/Processor/Board and compiler are you using?
STM32L476RG Board and SSD1327 driver.
What LVGL version are you using?
v8.3
What do you want to achieve?
I’m using
// lv_theme_mono_init(0, false, NULL);
// lv_theme_mono_is_inited();
this function, but I’m not sure what it does.
What have you tried so far?
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
/*You code here*/
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.
As you can see here it initializes the styles:
LV_GC_ROOT(_lv_theme_default_styles) = lv_mem_alloc(sizeof(my_theme_styles_t));
styles = (my_theme_styles_t *)LV_GC_ROOT(_lv_theme_default_styles);
}
theme.disp = disp;
theme.font_small = LV_FONT_DEFAULT;
theme.font_normal = LV_FONT_DEFAULT;
theme.font_large = LV_FONT_DEFAULT;
theme.apply_cb = theme_apply;
style_init(dark_bg, font);
if(disp == NULL || lv_disp_get_theme(disp) == &theme) lv_obj_report_style_change(NULL);
inited = true;
return (lv_theme_t *)&theme;
}
static void theme_apply(lv_theme_t * th, lv_obj_t * obj)
yelll
April 25, 2023, 12:08am
3
If you look at the blog, you apply that function on a gray scale LCD, why are you doing it?
This tutorial describes how I got LittlevGL working on a small 128x64 OLED display with a PIC24FJ microcontroller. The OLED display board I used had a SH1106 driver chip, but the code would probably work nealry unchanged with an SSD1306, and should...
The blog post is 4 years old and doesn’t apply to the current version of LVGL.
yelll
April 26, 2023, 7:04am
5
However, depending on whether or not that function is used, the area displayed is different. What does that function do?