I am trying to get a working example of Zephyr with lvgl (8+) using the PineTime board. There seems to be a lot of changes since the samples I've seen. For example most of the examples have:
struct device *display_dev; lv_obj_t *hello_world_label; display_dev = device_get_binding(CONFIG_LVGL_DISPLAY_DEV_NAME); if (display_dev == NULL) { printk("Display not found."); return; } hello_world_label = lv_label_create(lv_scr_act()); lv_label_set_text(hello_world_label, "Hello World"); lv_obj_align(hello_world_label, LV_ALIGN_CENTER, 0, 0); display_blanking_off(display_dev); lv_task_handler();
With this in the prj.conf:
CONFIG_LVGL_DISPLAY_DEV_NAME="DISPLAY"
However there seem to be changes in lvgl and Zephyr calls seem to use the devicetree, like:
const struct gpio_dt_spec display_spec = GPIO_DT_SPEC_GET_OR(DT_ALIAS(led2), gpios, {0});
Is there a more up to date "hello world" for Zephyr, PineTime, and lvgl?