I’m using LVGL as a Zephyr module. I was able to display a “Hello World” but it shows up as white text on a black background. I added the code from this post, which didn’t seem to do anything (still white text on black background). The code below is where I’m currently at, and I’m able to change the font but the text color still can’t be changed for some reason. Changing the background color using lv_style_set_bg_color does work (EDIT: turns out this actually crashes the program, added more info in my 2nd comment), which then produces a blank all-white screen. Am I doing something wrong here?
The issue was related to lv_color_white and lv_color_black being interpreted differently for my display. Swapping them and avoiding the lv_style_set functions in favor of lv_obj_set_style fixed the issue. I’m still new to LVGL so I’m not sure why the former causes bus faults, but I’m just happy my display finally works at this point.