「App:Library:LVGL:docs:3rd party libraries:File System Interfaces」の版間の差分
1行目: | 1行目: | ||
https://docs.lvgl.io/8.2/libs/fsdrv.html | https://docs.lvgl.io/8.2/libs/fsdrv.html | ||
__NOTOC__ | __NOTOC__ | ||
+ | = File System Interfaces = | ||
{| class="wikitable" | {| class="wikitable" | ||
!英文 | !英文 | ||
6行目: | 7行目: | ||
|- | |- | ||
| | | | ||
− | |||
− | |||
− | |||
− | |||
LVGL has a File system module to provide an abstraction layer for various file system drivers. | LVGL has a File system module to provide an abstraction layer for various file system drivers. | ||
20行目: | 17行目: | ||
You still need to provide the drivers and libraries, this extension provides only the bridge between FATFS, STDIO, POSIX, WIN32 and LVGL. | You still need to provide the drivers and libraries, this extension provides only the bridge between FATFS, STDIO, POSIX, WIN32 and LVGL. | ||
+ | | | ||
+ | |} | ||
+ | |||
== Usage == | == Usage == | ||
− | In <code>lv_conf.h</code> enable <code>LV_USE_FS_...</code> and assign an upper cased letter to <code>LV_FS_..._LETTER</code> (e.g. <code>'S'</code>). After that you can access files using that driver letter. E.g. <code>"S:path/to/file.txt"</code>. | + | {| class="wikitable" |
− | + | !英文 | |
− | + | !自動翻訳 | |
− | + | |- | |
− | + | | | |
− | + | In <code style="color: #bb0000;">lv_conf.h</code> enable <code style="color: #bb0000;">LV_USE_FS_...</code> and assign an upper cased letter to <code style="color: #bb0000;">LV_FS_..._LETTER</code> (e.g. <code style="color: #bb0000;">'S'</code>). After that you can access files using that driver letter. E.g. <code style="color: #bb0000;">"S:path/to/file.txt"</code>. | |
+ | The work directory can be set with <code style="color: #bb0000;">LV_FS_..._PATH</code>. E.g. <code style="color: #bb0000;">"/home/joe/projects/"</code> The actual file/directory paths will be appended to it. | ||
+ | Cached reading is also supported if <code style="color: #bb0000;">LV_FS_..._CACHE_SIZE</code> is set to not <code style="color: #bb0000;">0</code> value. <code style="color: #bb0000;">lv_fs_read</code> caches this size of data to lower the number of actual reads from the storage. | ||
+ | | | ||
+ | |} | ||
− | |||
:[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] | :[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] |
2022年6月29日 (水) 15:05時点における版
https://docs.lvgl.io/8.2/libs/fsdrv.html
File System Interfaces
英文 | 自動翻訳 |
---|---|
LVGL has a File system module to provide an abstraction layer for various file system drivers. LVG has built in support for:
You still need to provide the drivers and libraries, this extension provides only the bridge between FATFS, STDIO, POSIX, WIN32 and LVGL. |
Usage
英文 | 自動翻訳 |
---|---|
In The work directory can be set with Cached reading is also supported if |