[已解决] 请问在Arduino中怎样配置LVGL8.1.0访问spiffs里面的字库或图片?
Posted: Wed Dec 22, 2021 7:57 am
抱歉把Arduino的内容发在这个版块了.
在Arduino的示例中LITTLEFS_test.ino SPIFFS_Test.ino FFat_Test.ino已经测试成功, 并且使用ESP32 Sketch Data Upload 可以上传文件到对应的分区.
但是怎样在lv_conf.h中怎样配置这些选项
#define LV_USE_FS_STDIO '\0' /*Uses fopen, fread, etc*/
//#define LV_FS_STDIO_PATH "/home/john/" /*Set the working directory. If commented it will be "./" */
#define LV_USE_FS_POSIX '\0' /*Uses open, read, etc*/
//#define LV_FS_POSIX_PATH "/home/john/" /*Set the working directory. If commented it will be "./" */
#define LV_USE_FS_WIN32 '\0' /*Uses CreateFile, ReadFile, etc*/
//#define LV_FS_WIN32_PATH "C:\\Users\\john\\" /*Set the working directory. If commented it will be ".\\" */
#define LV_USE_FS_FATFS '\0' /*Uses f_open, f_read, etc*/
或者是要修改lv_port_fs.h来实现访问SPIFFS或者LITTLEFS分区文件的目的?
希望得到你们的指点,谢谢!
在Arduino的示例中LITTLEFS_test.ino SPIFFS_Test.ino FFat_Test.ino已经测试成功, 并且使用ESP32 Sketch Data Upload 可以上传文件到对应的分区.
但是怎样在lv_conf.h中怎样配置这些选项
#define LV_USE_FS_STDIO '\0' /*Uses fopen, fread, etc*/
//#define LV_FS_STDIO_PATH "/home/john/" /*Set the working directory. If commented it will be "./" */
#define LV_USE_FS_POSIX '\0' /*Uses open, read, etc*/
//#define LV_FS_POSIX_PATH "/home/john/" /*Set the working directory. If commented it will be "./" */
#define LV_USE_FS_WIN32 '\0' /*Uses CreateFile, ReadFile, etc*/
//#define LV_FS_WIN32_PATH "C:\\Users\\john\\" /*Set the working directory. If commented it will be ".\\" */
#define LV_USE_FS_FATFS '\0' /*Uses f_open, f_read, etc*/
或者是要修改lv_port_fs.h来实现访问SPIFFS或者LITTLEFS分区文件的目的?
希望得到你们的指点,谢谢!