设置默认亮度
This commit is contained in:
parent
e48a28d059
commit
fef182000c
@ -5,4 +5,4 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
|
||||
add_compile_options(-Wno-missing-field-initializers)
|
||||
|
||||
project(oxy_fluxdc)
|
||||
project(oxy_fluxdc_v02)
|
||||
|
||||
@ -40,6 +40,8 @@ extern "C" {
|
||||
#define LEDC_DUTY (4096) // Set duty to 50%. (2 ** 13) * 50% = 4096
|
||||
#define LEDC_FREQUENCY (4000) // Frequency in Hertz. Set frequency at 4 kHz
|
||||
|
||||
#define DEFAULT_LIGHT (9000)
|
||||
|
||||
/* 定义进行电池AD采样的通道 */
|
||||
#define BATTERY_ADC_CHANNEL ADC_CHANNEL_8
|
||||
|
||||
|
||||
@ -122,6 +122,10 @@ extern "C" void app_main(void)
|
||||
lv_label_set_text(ui_pageHome_labelResultCompare,"");
|
||||
lv_label_set_text(ui_pageHome_labelTestResult,"-");
|
||||
|
||||
/* 设置亮度 */
|
||||
lv_slider_set_value(ui_pageSetting_sliderLight,DEFAULT_LIGHT,LV_ANIM_OFF);
|
||||
lv_event_send(ui_pageSetting_sliderLight,LV_EVENT_VALUE_CHANGED,NULL);
|
||||
|
||||
#if LOG_RECORD_ENABLE
|
||||
example_write_log("main 函数执行完毕");
|
||||
#endif
|
||||
|
||||
@ -49,4 +49,5 @@
|
||||
/*包含时间同步头文件*/
|
||||
#include "FluxTime.h"
|
||||
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user