1 Star 0 Fork 1

LVGL / lv_fs_if

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

File System Interface

This repository is merged into the lvgl repository. See https://docs.lvgl.io/master/libs/fs.html

LVGL has a File system module to attach memories which can manipulate with files. Here you can find interfaces to

  • FATFS
  • PC (Linux and Windows using C standard function .e.g fopen, fread)
  • POSIX (Linux and Windows using POSIX function .e.g open, read) file systems.

You still need to provide the drivers and libraries, this repo gives "only" the bridge between FATFS/PC/etc and LittlevGL.

Usage

  1. Add these lines to you lv_conf.h:
/*File system interface*/
#define LV_USE_FS_IF	1
#if LV_USE_FS_IF
#  define LV_FS_IF_FATFS    '\0'
#  define LV_FS_IF_PC       '\0'
#  define LV_FS_IF_POSIX    '\0'
#endif  /*LV_USE_FS_IF*/
  1. Enable an interface you need by changing '\0' to letter you want to use for that drive. E.g. 'S' for SD card with FATFS.

  2. Call lv_fs_if_init() (after lv_init()) to register the enabled interfaces.

MIT License Copyright (c) 2019 Littlev Graphics Library Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

LVGL interfaces to various file systems (PC, FatFS) 展开 收起
C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/my_lvgl/lv_fs_if.git
git@gitee.com:my_lvgl/lv_fs_if.git
my_lvgl
lv_fs_if
lv_fs_if
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891