需要打开对应的文件系统api的宏定义,并指定一个盘符,在访问的时候,在地址前面加上最高盘符就好了。
例如下面这样:
/API for open, read, etc/ #define LV_USE_FS_POSIX 1 #if LV_USE_FS_POSIX #define LV_FS_POSIX_LETTER ‘S’ /Set an upper cased letter on which the drive will accessible (e.g. ‘A’)/ #define LV_FS_POSIX_PATH “” /Set the working directory. File/directory paths will be appended to it./ #define LV_FS_POSIX_CACHE_SIZE 0 />0 to cache this number of bytes in lv_fs_read()/ #endif