lvgl / lv_port_pc_visual_studio

Visual Studio projects for LVGL embedded graphics library. Recommended on Windows. Linux support with Wayland is work in progress.
MIT License
607 stars 306 forks source link

Enable file system on simulator #45

Closed jacquesdmernok closed 1 year ago

jacquesdmernok commented 2 years ago

Hi there. Has anyone been able to successfully add the file system support to the simulator?

I would like to use the simulator to create demos of user interactions. But I plan to have quite a bit of images and gif files. It would be great if I could have a directory on the PC with these files, and reference the files from within the simulator.

kisvegabor commented 2 years ago

You can simply use LV_USE_FS_WIN32 in lv_conf.h.

MouriNaruto commented 2 years ago

The LV_USE_FS_WIN32 is automatically set in this project.

Note: You can also get the commented example in LVGL.Simulator.cpp itself.

https://github.com/lvgl/lv_port_win_visual_studio/blob/29e7abe13c1c5ed21f9d7e104628fa0afa83ba91/LVGL.Simulator/LVGL.Simulator.cpp#L88-L101

Kenji Mouri

MouriNaruto commented 1 year ago

Close issue because this issue should be solved.

Kenji Mouri