(可选)将 lv_examples/lv_ex_conf_template.h 复制到 lv_examples 同级目录下,并将其重命名为 lv_ex_conf.h 。打开文件并将开头的 #if 0 更改为 #if 1 以使能其内容。 准备lvgl配置文件 使能配置文件 lv_conf.h 也可以复制到其他位置,但是应该在编译器选项中添加 ``LV_CONF_INCLUDE_SIMPLE``定义(例...
#elif defined(LV_CONF_INCLUDE_SIMPLE) /*Or simply include lv_conf.h is enabled*/ #include "lv_conf.h" #else #include "../../lv_conf.h" /*Else assume lv_conf.h is next to the lvgl folder*/ #endif #endif +#if !defined(LV_CONF_H) && !defined(LV_CONF_SUPPRESS_DEFINE_CHECK)...
* @file lv_conf.h * Configuration file for v8.3.11 */ /* * Copy this file as `lv_conf.h` * 1. simply next to the `lvgl` folder * 2. or any other places and * - define `LV_CONF_INCLUDE_SIMPLE` * - add the path as include path */ /* clang-format off ...
* - define `LV_CONF_INCLUDE_SIMPLE`; * - add the path as an include path. */ /* clang-format off */ #if 0 /* Set this to "1" to enable content */ #ifndef LV_CONF_H #define LV_CONF_H /* If you need to include anything here, do it inside the `__ASSEMBLY__`...
You define LV_LVGL_H_INCLUDE_SIMPLE and that changes globally where the `lv_conf.h` is searched to the "local" include like this: #include "lv_conf.h" This means that it will be searched in your personal include path. I've put mine in "include/gui" path and added this path to ...
1 file changed +1 -0 lines changed Original file line numberDiff line numberDiff line change @@ -4,3 +4,4 @@ 44 #(Uses default behaviour of compiling all source files in directory, adding 'include' to include path.) 55 66 CFLAGS+= -DLV_CONF_INCLUDE_SIMPLE ...
* @file lv_conf.h * Configuration file for v9.1.0 */ /* * Copy this file as `lv_conf.h` * 1. simply next to the `lvgl` folder * 2. or any other places and * - define `LV_CONF_INCLUDE_SIMPLE` * - add the path as include path */ /* clang-format off *...
* @file lv_conf.h * Configuration file for v9.1.1-dev */ /* * Copy this file as `lv_conf.h` * 1. simply next to the `lvgl` folder * 2. or any other places and * - define `LV_CONF_INCLUDE_SIMPLE` * - add the path as include path */ /* clang-format of...
esp_vfs_spiffs_conf_t conf = { .base_path = LV_FS_PATH, .partition_label = NULL, .max_files = 5, .format_if_mount_failed = true}; esp_err_t ret = esp_vfs_spiffs_register(&conf); if (ret != ESP_OK) { if (ret == ESP_FAIL) ...
16#ifdef LV_CONF_INCLUDE_SIMPLE 17#include "lv_conf.h" 18#else 19#include "../../../lv_conf.h" 20#endif 21 22#include <stdint.h> 23#include <stdbool.h> 24#include <string.h> 25 26/*** 27* DEFINES 28***/ 29 30/*** 31*...