add weather widget preview
This commit is contained in:
@@ -88,7 +88,7 @@ void main_tile_setup( lv_obj_t *tile, lv_style_t *style, lv_coord_t hres, lv_coo
|
||||
widget_entry[ widget ].y = 0;
|
||||
lv_obj_reset_style_list( widget_entry[ widget ].widget, LV_OBJ_PART_MAIN );
|
||||
lv_obj_add_style( widget_entry[ widget ].widget, LV_OBJ_PART_MAIN, style );
|
||||
lv_obj_set_size( widget_entry[ widget ].widget, 64, 64 );
|
||||
lv_obj_set_size( widget_entry[ widget ].widget, 64, 80 );
|
||||
lv_obj_set_hidden( widget_entry[ widget ].widget, true );
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ void battery_settings_tile_setup( lv_obj_t *tile, lv_style_t *style, lv_coord_t
|
||||
lv_obj_align( battery_design_cap_label, battery_design_cont, LV_ALIGN_IN_LEFT_MID, 5, 0 );
|
||||
battery_design_cap = lv_label_create( battery_design_cont, NULL);
|
||||
lv_obj_add_style( battery_design_cap, LV_OBJ_PART_MAIN, style );
|
||||
lv_label_set_text( battery_design_cap, "380mAh");
|
||||
lv_label_set_text( battery_design_cap, "350mAh");
|
||||
lv_obj_align( battery_design_cap, battery_design_cont, LV_ALIGN_IN_RIGHT_MID, -5, 0 );
|
||||
|
||||
lv_obj_t *battery_current_cont = lv_obj_create( battery_settings_tile, NULL );
|
||||
|
||||
@@ -109,10 +109,10 @@ static void update_event_handler(lv_obj_t * obj, lv_event_t event) {
|
||||
void update_update_firmware( void ) {
|
||||
if((WiFi.status() == WL_CONNECTED)) {
|
||||
|
||||
WiFiClientSecure client;
|
||||
client.setTimeout(12000 / 1000);
|
||||
WiFiClient client;
|
||||
client.setTimeout( 10 );
|
||||
|
||||
t_httpUpdate_return ret = httpUpdate.update( client, "https://www.neo-guerillaz.de/ttgo-t-watch2020_v1.ino.bin" );
|
||||
t_httpUpdate_return ret = httpUpdate.update( client, "http://www.neo-guerillaz.de/ttgo-t-watch2020_v1.ino.bin" );
|
||||
|
||||
switch(ret) {
|
||||
case HTTP_UPDATE_FAILED:
|
||||
|
||||
Reference in New Issue
Block a user