Skip to content

Commit

Permalink
fixed lvgl example for nucleo-l452re
Browse files Browse the repository at this point in the history
  • Loading branch information
frnktank committed Nov 22, 2024
1 parent 7b571a6 commit 2b32d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/nucleo_l452re/lvgl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ modm::Touch2046<touch::Spi, touch::Cs> 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)
{
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2b32d4b

Please sign in to comment.