Xinyuan-LilyGO / T-Watch-2021

MIT License
78 stars 18 forks source link

try to use lvgl and get out of memory #9

Closed Dj-EKI closed 1 year ago

Dj-EKI commented 1 year ago

What i make wrong? I use lvgl_btn.ino example. I use Arduino 2.1.0 T-Watch 2021 1.0

[Error] (0.502, +502) lv_timer_create: Asserted at expression: new_timer != NULL (Out of memory) (in lv_timer.c line #172)

Dj-EKI commented 1 year ago

My Setting was wrong. I need this in Arduino -> Tools.

And this in TWatch_config.h

// APP CONFIG
#define CONFIG_TWATCH_USE_DEBUG             1
#define CONFIG_TWATCH_APP_LVGL              1
    /*    ├─ */ #define DISP_BUF_SIZE       /**/ (SCREEN_WIDTH *SCREEN_HEIGHT * 0.5)
    /*    ├─ */ #define DISP_BUF_FROM_PSRAM 1 // Turning this on makes the screen appear smoother, but it uses a lot of RAM.
/*
Use LVGL built-in file system
SD: lv_img_set_src(wp, "A:/sd/logo.sjpg");
LFS: lv_img_set_src(wp, "A:/lfs/logo.jpg");
 */
#define CONFIG_TWATCH_APP_LVGL_LFS          0