From 2b32d4bf4a9c5aec38efd6317fb5f837d1d0082c Mon Sep 17 00:00:00 2001 From: Frank Altheim <60691237+frnktank@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:15:16 +0100 Subject: [PATCH] fixed lvgl example for nucleo-l452re --- examples/nucleo_l452re/lvgl/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nucleo_l452re/lvgl/main.cpp b/examples/nucleo_l452re/lvgl/main.cpp index 86bda2ac0e..0b05535cba 100644 --- a/examples/nucleo_l452re/lvgl/main.cpp +++ b/examples/nucleo_l452re/lvgl/main.cpp @@ -63,7 +63,7 @@ modm::Touch2046 touchController; static constexpr size_t buf_size = LV_HOR_RES_MAX * LV_VER_RES_MAX / 8; -static lv_color_t buf[buf_size]; +static modm_aligned(4) lv_color_t buf[buf_size]; void my_touchpad_read(lv_indev_t*, lv_indev_data_t* data) { @@ -119,7 +119,7 @@ main() lv_display_t *disp = lv_display_create(LV_HOR_RES_MAX, LV_VER_RES_MAX); lv_display_set_flush_cb(disp, disp_flush); - lv_display_set_buffers(disp, buf, NULL, sizeof(buf), LV_DISPLAY_RENDER_MODE_DIRECT); + lv_display_set_buffers(disp, buf, NULL, sizeof(buf), LV_DISPLAY_RENDER_MODE_PARTIAL); // Initialize touchscreen driver: lv_indev_t* indev = lv_indev_create();