LVGL tft and SD on same SPI

What do you want to achieve?

I would like to read from my SD card while LVGL is running

What have you tried so far?

tried using #include <esp_littlefs.h> #include <littlefs.h> #include

Code to reproduce

lv_conf.h >>
/** API for Arduino LittleFs. */
#define LV_USE_FS_ARDUINO_ESP_LITTLEFS 1
#if LV_USE_FS_ARDUINO_ESP_LITTLEFS
#define LV_FS_ARDUINO_ESP_LITTLEFS_LETTER ‘S’ /< Set an upper-case driver-identifier letter for this driver (e.g. ‘A’). */
#define LV_FS_ARDUINO_ESP_LITTLEFS_PATH “/” /
< Set the working directory. File/directory paths will be appended to it. */
#endif

/*You code here*/

Screenshot and/or video

Environment

ESP32 dev / 8MB

  • LVGL version:
  • 9.4

when compiling, I get the error lib/lvgl/src/libs/fsdrv/lv_fs_arduino_esp_littlefs.cpp:58:5: error: ‘LittleFS’ was not declared in this scope.

I tried using just SD as a stand alone. (my own library) however there was not a good method found to set CS high on tft display while SD was reading / writing. Help would be greatly appreciated.