Refactor NVS and WiFi handlers for improved memory management and logging
- Updated KVStorageHandler interface to use std::string instead of char* for key-value operations. - Enhanced NVSStorageHandler to utilize ESP_LOG for error and info messages instead of printf. - Refactored WifiHandler to manage WiFi credentials using JSON format for better structure and storage. - Replaced raw pointers with std::unique_ptr in WifiHandler and NetworkHandler for automatic memory management. - Removed unused TouchHandler and EInkTouchHandler classes to clean up the codebase. - Adjusted CMakeLists.txt to remove unnecessary include directories. - Updated lv_conf.h to enable FreeRTOS and gesture recognition features.
This commit is contained in:
@@ -109,7 +109,8 @@
|
||||
* - LV_OS_MQX
|
||||
* - LV_OS_SDL2
|
||||
* - LV_OS_CUSTOM */
|
||||
#define LV_USE_OS LV_OS_NONE
|
||||
// #define LV_USE_OS LV_OS_NONE
|
||||
#define LV_USE_OS LV_OS_FREERTOS
|
||||
|
||||
#if LV_USE_OS == LV_OS_CUSTOM
|
||||
#define LV_OS_CUSTOM_INCLUDE <stdint.h>
|
||||
@@ -574,7 +575,8 @@
|
||||
|
||||
/* Enable the multi-touch gesture recognition feature */
|
||||
/* Gesture recognition requires the use of floats */
|
||||
#define LV_USE_GESTURE_RECOGNITION 0
|
||||
// #define LV_USE_GESTURE_RECOGNITION 0
|
||||
#define LV_USE_GESTURE_RECOGNITION 1
|
||||
|
||||
/*=====================
|
||||
* COMPILER SETTINGS
|
||||
@@ -617,7 +619,8 @@
|
||||
#define LV_ATTRIBUTE_EXTERN_DATA
|
||||
|
||||
/** Use `float` as `lv_value_precise_t` */
|
||||
#define LV_USE_FLOAT 0
|
||||
// #define LV_USE_FLOAT 0
|
||||
#define LV_USE_FLOAT 1
|
||||
|
||||
/** Enable matrix support
|
||||
* - Requires `LV_USE_FLOAT = 1` */
|
||||
@@ -1189,7 +1192,8 @@
|
||||
|
||||
/** 1: Enable Pinyin input method
|
||||
* - Requires: lv_keyboard */
|
||||
#define LV_USE_IME_PINYIN 0
|
||||
// #define LV_USE_IME_PINYIN 0
|
||||
#define LV_USE_IME_PINYIN 1
|
||||
#if LV_USE_IME_PINYIN
|
||||
/** 1: Use default thesaurus.
|
||||
* @note If you do not use the default thesaurus, be sure to use `lv_ime_pinyin` after setting the thesaurus. */
|
||||
@@ -1436,10 +1440,12 @@
|
||||
*======================*/
|
||||
|
||||
/** Enable examples to be built with the library. */
|
||||
#define LV_BUILD_EXAMPLES 1
|
||||
// #define LV_BUILD_EXAMPLES 1
|
||||
#define LV_BUILD_EXAMPLES 0
|
||||
|
||||
/** Build the demos */
|
||||
#define LV_BUILD_DEMOS 1
|
||||
// #define LV_BUILD_DEMOS 1
|
||||
#define LV_BUILD_DEMOS 0
|
||||
|
||||
/*===================
|
||||
* DEMO USAGE
|
||||
|
||||
Reference in New Issue
Block a user