police + grosse meteo
This commit is contained in:
parent
87a4e93e87
commit
f1e7479a0e
15
main/main.c
15
main/main.c
@ -1018,7 +1018,7 @@ void draw_ihm()
|
||||
lv_style_set_text_font(&style_font_24, &montserrat_medium_24);
|
||||
|
||||
lv_style_init(&style_font_12);
|
||||
lv_style_set_text_font(&style_font_12, &montserrat_medium_12);
|
||||
lv_style_set_text_font(&style_font_12, &montserrat_medium_18);
|
||||
|
||||
// lv_style_set_bg_color(&style_btn, lv_color_hex(0x115588));
|
||||
// lv_style_set_bg_opa(&style_btn, LV_OPA_50);
|
||||
@ -1302,6 +1302,10 @@ void readTempHumid(void *pvParameter)
|
||||
|
||||
}
|
||||
|
||||
void log_cb(lv_log_level_t level, const char * buf){
|
||||
ESP_LOGE(TAG, "%s",buf);
|
||||
}
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
printf("Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
|
||||
@ -1327,10 +1331,13 @@ void app_main(void)
|
||||
.sw_rotate = false,
|
||||
}
|
||||
};
|
||||
bsp_display_start_with_config(&cfg);
|
||||
lv_display_t *dsp = bsp_display_start_with_config(&cfg);
|
||||
//bsp_display_rotate(dsp,LV_DISP_ROTATION_180);
|
||||
|
||||
bsp_display_backlight_on();
|
||||
|
||||
|
||||
//lv_log_register_print_cb(log_cb);
|
||||
// LCD HW initialization
|
||||
//ESP_ERROR_CHECK(app_lcd_init());
|
||||
|
||||
@ -1423,11 +1430,11 @@ void app_main(void)
|
||||
ESP_LOGE(TAG,"Impossible d'obtenir le mutex pour draw_ihm");
|
||||
}
|
||||
|
||||
mqtt_app_start();
|
||||
//mqtt_app_start();
|
||||
|
||||
on_weather_data_retrieval(weather_data_retreived);
|
||||
on_weather_data_retrieval_start(weather_data_retreived_start);
|
||||
initialise_weather_data_retrieval(600000);
|
||||
//initialise_weather_data_retrieval(600000);
|
||||
ESP_LOGW(TAG, "Weather data retrieval initialized");
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user