plus propre
This commit is contained in:
parent
dfbd28861e
commit
689d51b463
@ -24,5 +24,5 @@ dependencies:
|
|||||||
version: 9.4.0
|
version: 9.4.0
|
||||||
espressif/esp_lcd_qemu_rgb:
|
espressif/esp_lcd_qemu_rgb:
|
||||||
rules:
|
rules:
|
||||||
- if: target in ["esp32p4","esp32, "esp32s3"]
|
- if: target in ["esp32, "esp32s3"]
|
||||||
version: ^1
|
version: ^1
|
||||||
@ -1129,17 +1129,17 @@ static void time_observer_cb(lv_observer_t *observer, lv_subject_t *subject)
|
|||||||
struct tm *dateHeure = (struct tm *)lv_subject_get_pointer(subject);
|
struct tm *dateHeure = (struct tm *)lv_subject_get_pointer(subject);
|
||||||
char buff[13];
|
char buff[13];
|
||||||
|
|
||||||
snprintf(buff, 8, "%02" LV_PRIu32 "/", dateHeure->tm_mday);
|
snprintf(buff, 8, "%02" LV_PRIu32 "/", (uint32_t)dateHeure->tm_mday);
|
||||||
ESP_LOGE(TAG, "%s", buff);
|
ESP_LOGE(TAG, "%s", buff);
|
||||||
lv_span_set_text(lv_spangroup_get_child(spangroup, 0), buff);
|
lv_span_set_text(lv_spangroup_get_child(spangroup, 0), buff);
|
||||||
snprintf(buff, 4, "%02" LV_PRIu32, (int)((dateHeure->tm_mon) + 1));
|
snprintf(buff, 4, "%02" LV_PRIu32, (uint32_t)((dateHeure->tm_mon) + 1));
|
||||||
lv_span_set_text(lv_spangroup_get_child(spangroup, 1), buff);
|
lv_span_set_text(lv_spangroup_get_child(spangroup, 1), buff);
|
||||||
lv_spangroup_refresh(spangroup);
|
lv_spangroup_refresh(spangroup);
|
||||||
|
|
||||||
spangroup = lv_obj_find_by_name(dateTimeObj, "time");
|
spangroup = lv_obj_find_by_name(dateTimeObj, "time");
|
||||||
snprintf(buff,sizeof(buff), "%02" LV_PRId32, dateHeure->tm_hour);
|
snprintf(buff,sizeof(buff), "%02" LV_PRId32, (uint32_t)dateHeure->tm_hour);
|
||||||
lv_span_set_text(lv_spangroup_get_child(spangroup, 0), buff);
|
lv_span_set_text(lv_spangroup_get_child(spangroup, 0), buff);
|
||||||
snprintf(buff,sizeof(buff), ":%02" LV_PRId32, dateHeure->tm_min);
|
snprintf(buff,sizeof(buff), ":%02" LV_PRId32, (uint32_t)dateHeure->tm_min);
|
||||||
lv_span_set_text(lv_spangroup_get_child(spangroup, 1), buff);
|
lv_span_set_text(lv_spangroup_get_child(spangroup, 1), buff);
|
||||||
lv_spangroup_refresh(spangroup);
|
lv_spangroup_refresh(spangroup);
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
idf_component_register(SRCS "obtain_time.c" "eventsManager.c" obtain_time.c
|
idf_component_register(SRCS "obtain_time.c" "eventsManager.c" obtain_time.c
|
||||||
INCLUDE_DIRS "include"
|
INCLUDE_DIRS "include"
|
||||||
REQUIRES mqtt)
|
REQUIRES mqtt esp_netif)
|
||||||
|
|||||||
36
sdkconfig.defaults.linux
Normal file
36
sdkconfig.defaults.linux
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# This file was generated using idf.py save-defconfig. It can be edited manually.
|
||||||
|
# Espressif IoT Development Framework (ESP-IDF) 5.5.2 Project Minimal Configuration
|
||||||
|
#
|
||||||
|
CONFIG_IDF_TARGET="linux"
|
||||||
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||||
|
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
|
||||||
|
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
|
||||||
|
CONFIG_FATFS_LFN_HEAP=y
|
||||||
|
CONFIG_FREERTOS_HZ=1000
|
||||||
|
CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y
|
||||||
|
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
|
||||||
|
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y
|
||||||
|
CONFIG_VFS_MAX_COUNT=15
|
||||||
|
CONFIG_LV_USE_CLIB_MALLOC=y
|
||||||
|
CONFIG_LV_USE_CLIB_STRING=y
|
||||||
|
CONFIG_LV_USE_CLIB_SPRINTF=y
|
||||||
|
CONFIG_LV_DEF_REFR_PERIOD=10
|
||||||
|
CONFIG_LV_USE_DRAW_SW_COMPLEX_GRADIENTS=y
|
||||||
|
CONFIG_LV_USE_LOG=y
|
||||||
|
CONFIG_LV_LOG_PRINTF=y
|
||||||
|
CONFIG_LV_USE_OBJ_ID=y
|
||||||
|
CONFIG_LV_USE_OBJ_NAME=y
|
||||||
|
CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM=y
|
||||||
|
CONFIG_LV_USE_PRIVATE_API=y
|
||||||
|
CONFIG_LV_FONT_MONTSERRAT_40=y
|
||||||
|
CONFIG_LV_USE_FS_STDIO=y
|
||||||
|
CONFIG_LV_FS_STDIO_LETTER=65
|
||||||
|
CONFIG_LV_USE_LODEPNG=y
|
||||||
|
CONFIG_LV_USE_SDL=y
|
||||||
|
CONFIG_LV_BUILD_EXAMPLES=n
|
||||||
|
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
|
||||||
|
|
||||||
|
CONFIG_ESP_MAIN_TASK_STACK_SIZE=12288
|
||||||
|
CONFIG_LV_BUILD_DEMOS=n
|
||||||
|
CONFIG_LV_COLOR_DEPTH_32=y
|
||||||
|
CONFIG_LV_COLOR_DEPTH=32
|
||||||
Loading…
x
Reference in New Issue
Block a user