/*
 * Copyright 2022 NXP
 * SPDX-License-Identifier: MIT
 * The auto-generated can only be used on NXP devices
 */

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "custom.h"
#include "net_time.h"
#include "freertos.h"

extern nt_calendar_obj nwt;  //定义结构体变量
extern present_time time_now;

char temp_dataq[10] = { 0 };//转换数据缓存
extern u8 control_time;
static int screen1_digital_clock_1_hour_value ;
static int screen1_digital_clock_1_min_value ;
static int screen1_digital_clock_1_sec_value ;
int i=0;
extern int time_date1,time_date2,time_date3;



void screen1_digital_clock_1_timer(lv_timer_t *timer)
{
	if(i==0)//第一次获取网络时间
	{
	time_now.year=nwt.year;
	time_now.month=nwt.month;
	time_now.day=nwt.day;	
	screen1_digital_clock_1_hour_value=nwt.hour;
	screen1_digital_clock_1_min_value=nwt.min;
	screen1_digital_clock_1_sec_value=nwt.sec;
	i=1;
	}
	if(control_time==1)//手动修改后的时间
	{
	screen1_digital_clock_1_hour_value=time_date1;
	screen1_digital_clock_1_min_value=time_date2*10+time_date3;
	control_time=0;	
	}
	clock_count_24(&screen1_digital_clock_1_hour_value, &screen1_digital_clock_1_min_value, &screen1_digital_clock_1_sec_value);
	if (lv_obj_is_valid(guider_ui.screen1_digital_clock_1))
	{
	  time_now.hour=screen1_digital_clock_1_hour_value;
		time_now.min=screen1_digital_clock_1_min_value;
		time_now.sec=screen1_digital_clock_1_sec_value;
		
		if(screen1_digital_clock_1_hour_value==0&&screen1_digital_clock_1_min_value==0&&screen1_digital_clock_1_min_value==0)
		{
			__NVIC_SystemReset();//晚上12点整，系统自动重启，校准时间
		}
		lv_label_set_text_fmt(guider_ui.screen1_digital_clock_1, "%02d:%02d:%02d", screen1_digital_clock_1_hour_value, screen1_digital_clock_1_min_value, screen1_digital_clock_1_sec_value);
	}
}

void setup_scr_screen1(lv_ui *ui){

	//Write codes screen1
	ui->screen1 = lv_obj_create(NULL);

	//Write style state: LV_STATE_DEFAULT for style_screen1_main_main_default
	static lv_style_t style_screen1_main_main_default;
	if (style_screen1_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_main_main_default);
	else
		lv_style_init(&style_screen1_main_main_default);
	lv_style_set_bg_color(&style_screen1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_opa(&style_screen1_main_main_default, 0);
	lv_obj_add_style(ui->screen1, &style_screen1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_1
	ui->screen1_label_1 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_1, 22, 77);
	lv_obj_set_size(ui->screen1_label_1, 120, 31);
	lv_label_set_text(ui->screen1_label_1, "姓名");
	lv_label_set_long_mode(ui->screen1_label_1, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_1, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_1_main_main_default
	static lv_style_t style_screen1_label_1_main_main_default;
	if (style_screen1_label_1_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_1_main_main_default);
	else
		lv_style_init(&style_screen1_label_1_main_main_default);
	lv_style_set_radius(&style_screen1_label_1_main_main_default, 10);
	lv_style_set_bg_color(&style_screen1_label_1_main_main_default, lv_color_make(0xf0, 0xf0, 0xff));
	lv_style_set_bg_grad_color(&style_screen1_label_1_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_dir(&style_screen1_label_1_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_1_main_main_default, 255);
	lv_style_set_text_color(&style_screen1_label_1_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_1_main_main_default, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_screen1_label_1_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_1_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_1_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_1_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_1_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_1, &style_screen1_label_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_2
	ui->screen1_label_2 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_2, 175, 79);
	lv_obj_set_size(ui->screen1_label_2, 120, 32);
	lv_label_set_text(ui->screen1_label_2, "性别");
	lv_label_set_long_mode(ui->screen1_label_2, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_2, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_2_main_main_default
	static lv_style_t style_screen1_label_2_main_main_default;
	if (style_screen1_label_2_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_2_main_main_default);
	else
		lv_style_init(&style_screen1_label_2_main_main_default);
	lv_style_set_radius(&style_screen1_label_2_main_main_default, 10);
	lv_style_set_bg_color(&style_screen1_label_2_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_color(&style_screen1_label_2_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_dir(&style_screen1_label_2_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_2_main_main_default, 242);
	lv_style_set_text_color(&style_screen1_label_2_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_2_main_main_default, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_screen1_label_2_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_2_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_2_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_2_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_2_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_2, &style_screen1_label_2_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_3
	ui->screen1_label_3 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_3, 23, 125);
	lv_obj_set_size(ui->screen1_label_3, 120, 32);
	lv_label_set_text(ui->screen1_label_3, "指纹");
	lv_label_set_long_mode(ui->screen1_label_3, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_3, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_3_main_main_default
	static lv_style_t style_screen1_label_3_main_main_default;
	if (style_screen1_label_3_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_3_main_main_default);
	else
		lv_style_init(&style_screen1_label_3_main_main_default);
	lv_style_set_radius(&style_screen1_label_3_main_main_default, 10);
	lv_style_set_bg_color(&style_screen1_label_3_main_main_default, lv_color_make(0xf0, 0xf1, 0xff));
	lv_style_set_bg_grad_color(&style_screen1_label_3_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_dir(&style_screen1_label_3_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_3_main_main_default, 255);
	lv_style_set_text_color(&style_screen1_label_3_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_3_main_main_default, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_screen1_label_3_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_3_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_3_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_3_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_3_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_3, &style_screen1_label_3_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_4
	ui->screen1_label_4 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_4, 175, 129);
	lv_obj_set_size(ui->screen1_label_4, 120, 32);
	lv_label_set_text(ui->screen1_label_4, "NFC");
	lv_label_set_long_mode(ui->screen1_label_4, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_4, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_4_main_main_default
	static lv_style_t style_screen1_label_4_main_main_default;
	if (style_screen1_label_4_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_4_main_main_default);
	else
		lv_style_init(&style_screen1_label_4_main_main_default);
	lv_style_set_radius(&style_screen1_label_4_main_main_default, 10);
	lv_style_set_bg_color(&style_screen1_label_4_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_color(&style_screen1_label_4_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_dir(&style_screen1_label_4_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_4_main_main_default, 255);
	lv_style_set_text_color(&style_screen1_label_4_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_4_main_main_default, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_screen1_label_4_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_4_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_4_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_4_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_4_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_4, &style_screen1_label_4_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_5
	ui->screen1_label_5 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_5, 22, 178);
	lv_obj_set_size(ui->screen1_label_5, 120, 32);
	lv_label_set_text(ui->screen1_label_5, "体温");
	lv_label_set_long_mode(ui->screen1_label_5, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_5, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_5_main_main_default
	static lv_style_t style_screen1_label_5_main_main_default;
	if (style_screen1_label_5_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_5_main_main_default);
	else
		lv_style_init(&style_screen1_label_5_main_main_default);
	lv_style_set_radius(&style_screen1_label_5_main_main_default, 10);
	lv_style_set_bg_color(&style_screen1_label_5_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_color(&style_screen1_label_5_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_dir(&style_screen1_label_5_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_5_main_main_default, 255);
	lv_style_set_text_color(&style_screen1_label_5_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_5_main_main_default, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_screen1_label_5_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_5_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_5_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_5_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_5_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_5, &style_screen1_label_5_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_6
	ui->screen1_label_6 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_6, 175, 178);
	lv_obj_set_size(ui->screen1_label_6, 120, 32);
	lv_label_set_text(ui->screen1_label_6, "药品状态");
	lv_label_set_long_mode(ui->screen1_label_6, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_6, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_6_main_main_default
	static lv_style_t style_screen1_label_6_main_main_default;
	if (style_screen1_label_6_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_6_main_main_default);
	else
		lv_style_init(&style_screen1_label_6_main_main_default);
	lv_style_set_radius(&style_screen1_label_6_main_main_default, 10);
	lv_style_set_bg_color(&style_screen1_label_6_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_color(&style_screen1_label_6_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_dir(&style_screen1_label_6_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_6_main_main_default, 255);
	lv_style_set_text_color(&style_screen1_label_6_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_6_main_main_default, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_screen1_label_6_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_6_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_6_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_6_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_6_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_6, &style_screen1_label_6_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
	static bool screen1_digital_clock_1_timer_enabled = false;

	//Write codes screen1_digital_clock_1
	ui->screen1_digital_clock_1 = lv_label_create(ui->screen1);
	lv_obj_set_style_text_align(ui->screen1_digital_clock_1, LV_TEXT_ALIGN_CENTER, 0);
	lv_obj_set_pos(ui->screen1_digital_clock_1, 89, 25);
	lv_obj_set_size(ui->screen1_digital_clock_1, 140, 30);
		lv_label_set_text_fmt(guider_ui.screen1_digital_clock_1, "%02d:%02d:%02d", screen1_digital_clock_1_hour_value, screen1_digital_clock_1_min_value, screen1_digital_clock_1_sec_value);

	//create timer
	if (!screen1_digital_clock_1_timer_enabled) {
		lv_timer_create(screen1_digital_clock_1_timer, 1000, NULL);
		screen1_digital_clock_1_timer_enabled = true;
	}
	//Write style state: LV_STATE_DEFAULT for style_screen1_digital_clock_1_main_main_default
	static lv_style_t style_screen1_digital_clock_1_main_main_default;
	if (style_screen1_digital_clock_1_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_digital_clock_1_main_main_default);
	else
		lv_style_init(&style_screen1_digital_clock_1_main_main_default);
	lv_style_set_radius(&style_screen1_digital_clock_1_main_main_default, 15);
	lv_style_set_bg_color(&style_screen1_digital_clock_1_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_color(&style_screen1_digital_clock_1_main_main_default, lv_color_make(0xf1, 0xf0, 0xff));
	lv_style_set_bg_grad_dir(&style_screen1_digital_clock_1_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_digital_clock_1_main_main_default, 255);
	lv_style_set_text_color(&style_screen1_digital_clock_1_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_digital_clock_1_main_main_default, &lv_font_arial_14);
	lv_style_set_text_letter_space(&style_screen1_digital_clock_1_main_main_default, 0);
	lv_style_set_pad_left(&style_screen1_digital_clock_1_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_digital_clock_1_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_digital_clock_1_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_digital_clock_1_main_main_default, 0);
	lv_obj_add_style(ui->screen1_digital_clock_1, &style_screen1_digital_clock_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_imgbtn_1
	ui->screen1_imgbtn_1 = lv_imgbtn_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_imgbtn_1, 5, 2);
	lv_obj_set_size(ui->screen1_imgbtn_1, 32, 27);

	//Write style state: LV_STATE_DEFAULT for style_screen1_imgbtn_1_main_main_default
	static lv_style_t style_screen1_imgbtn_1_main_main_default;
	if (style_screen1_imgbtn_1_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_imgbtn_1_main_main_default);
	else
		lv_style_init(&style_screen1_imgbtn_1_main_main_default);
	lv_style_set_text_color(&style_screen1_imgbtn_1_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor(&style_screen1_imgbtn_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_imgbtn_1_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_imgbtn_1_main_main_default, 255);
	lv_obj_add_style(ui->screen1_imgbtn_1, &style_screen1_imgbtn_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style state: LV_STATE_PRESSED for style_screen1_imgbtn_1_main_main_pressed
	static lv_style_t style_screen1_imgbtn_1_main_main_pressed;
	if (style_screen1_imgbtn_1_main_main_pressed.prop_cnt > 1)
		lv_style_reset(&style_screen1_imgbtn_1_main_main_pressed);
	else
		lv_style_init(&style_screen1_imgbtn_1_main_main_pressed);
	lv_style_set_text_color(&style_screen1_imgbtn_1_main_main_pressed, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen1_imgbtn_1_main_main_pressed, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen1_imgbtn_1_main_main_pressed, 0);
	lv_obj_add_style(ui->screen1_imgbtn_1, &style_screen1_imgbtn_1_main_main_pressed, LV_PART_MAIN|LV_STATE_PRESSED);

	//Write style state: LV_STATE_CHECKED for style_screen1_imgbtn_1_main_main_checked
	static lv_style_t style_screen1_imgbtn_1_main_main_checked;
	if (style_screen1_imgbtn_1_main_main_checked.prop_cnt > 1)
		lv_style_reset(&style_screen1_imgbtn_1_main_main_checked);
	else
		lv_style_init(&style_screen1_imgbtn_1_main_main_checked);
	lv_style_set_text_color(&style_screen1_imgbtn_1_main_main_checked, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen1_imgbtn_1_main_main_checked, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen1_imgbtn_1_main_main_checked, 0);
	lv_obj_add_style(ui->screen1_imgbtn_1, &style_screen1_imgbtn_1_main_main_checked, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_imgbtn_set_src(ui->screen1_imgbtn_1, LV_IMGBTN_STATE_RELEASED, NULL, &_set_alpha_32x27, NULL);
	lv_imgbtn_set_src(ui->screen1_imgbtn_1, LV_IMGBTN_STATE_PRESSED, NULL, &_set_bule_alpha_32x27, NULL);
	lv_imgbtn_set_src(ui->screen1_imgbtn_1, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_set_alpha_32x27, NULL);
	lv_imgbtn_set_src(ui->screen1_imgbtn_1, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_set_bule_alpha_32x27, NULL);
	lv_obj_add_flag(ui->screen1_imgbtn_1, LV_OBJ_FLAG_CHECKABLE);

	//Write codes screen1_img_1
	ui->screen1_img_1 = lv_img_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_img_1, 95, 28);
	lv_obj_set_size(ui->screen1_img_1, 24, 24);

	//Write style state: LV_STATE_DEFAULT for style_screen1_img_1_main_main_default
	static lv_style_t style_screen1_img_1_main_main_default;
	if (style_screen1_img_1_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_img_1_main_main_default);
	else
		lv_style_init(&style_screen1_img_1_main_main_default);
	lv_style_set_img_recolor(&style_screen1_img_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_img_1_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_img_1_main_main_default, 255);
	lv_obj_add_style(ui->screen1_img_1, &style_screen1_img_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_add_flag(ui->screen1_img_1, LV_OBJ_FLAG_CLICKABLE);
	lv_img_set_src(ui->screen1_img_1,&_clock_24x24);
	lv_img_set_pivot(ui->screen1_img_1, 0,0);
	lv_img_set_angle(ui->screen1_img_1, 0);

	//Write codes screen1_img_2
	ui->screen1_img_2 = lv_img_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_img_2, 32, 80);
	lv_obj_set_size(ui->screen1_img_2, 24, 24);

	//Write style state: LV_STATE_DEFAULT for style_screen1_img_2_main_main_default
	static lv_style_t style_screen1_img_2_main_main_default;
	if (style_screen1_img_2_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_img_2_main_main_default);
	else
		lv_style_init(&style_screen1_img_2_main_main_default);
	lv_style_set_img_recolor(&style_screen1_img_2_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_img_2_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_img_2_main_main_default, 255);
	lv_obj_add_style(ui->screen1_img_2, &style_screen1_img_2_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_add_flag(ui->screen1_img_2, LV_OBJ_FLAG_CLICKABLE);
	lv_img_set_src(ui->screen1_img_2,&_ninz_24x24);
	lv_img_set_pivot(ui->screen1_img_2, 0,0);
	lv_img_set_angle(ui->screen1_img_2, 0);

	//Write codes screen1_img_3
	ui->screen1_img_3 = lv_img_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_img_3, 186, 83);
	lv_obj_set_size(ui->screen1_img_3, 24, 24);

	//Write style state: LV_STATE_DEFAULT for style_screen1_img_3_main_main_default
	static lv_style_t style_screen1_img_3_main_main_default;
	if (style_screen1_img_3_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_img_3_main_main_default);
	else
		lv_style_init(&style_screen1_img_3_main_main_default);
	lv_style_set_img_recolor(&style_screen1_img_3_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_img_3_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_img_3_main_main_default, 255);
	lv_obj_add_style(ui->screen1_img_3, &style_screen1_img_3_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_add_flag(ui->screen1_img_3, LV_OBJ_FLAG_CLICKABLE);
	lv_img_set_src(ui->screen1_img_3,&_man_24x24);
	lv_img_set_pivot(ui->screen1_img_3, 0,0);
	lv_img_set_angle(ui->screen1_img_3, 0);

	//Write codes screen1_img_4
	ui->screen1_img_4 = lv_img_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_img_4, 32, 129);
	lv_obj_set_size(ui->screen1_img_4, 24, 24);

	//Write style state: LV_STATE_DEFAULT for style_screen1_img_4_main_main_default
	static lv_style_t style_screen1_img_4_main_main_default;
	if (style_screen1_img_4_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_img_4_main_main_default);
	else
		lv_style_init(&style_screen1_img_4_main_main_default);
	lv_style_set_img_recolor(&style_screen1_img_4_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_img_4_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_img_4_main_main_default, 255);
	lv_obj_add_style(ui->screen1_img_4, &style_screen1_img_4_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_add_flag(ui->screen1_img_4, LV_OBJ_FLAG_CLICKABLE);
	lv_img_set_src(ui->screen1_img_4,&_guid_24x24);
	lv_img_set_pivot(ui->screen1_img_4, 0,0);
	lv_img_set_angle(ui->screen1_img_4, 0);

	//Write codes screen1_img_5
	ui->screen1_img_5 = lv_img_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_img_5, 186, 133);
	lv_obj_set_size(ui->screen1_img_5, 24, 24);

	//Write style state: LV_STATE_DEFAULT for style_screen1_img_5_main_main_default
	static lv_style_t style_screen1_img_5_main_main_default;
	if (style_screen1_img_5_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_img_5_main_main_default);
	else
		lv_style_init(&style_screen1_img_5_main_main_default);
	lv_style_set_img_recolor(&style_screen1_img_5_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_img_5_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_img_5_main_main_default, 255);
	lv_obj_add_style(ui->screen1_img_5, &style_screen1_img_5_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_add_flag(ui->screen1_img_5, LV_OBJ_FLAG_CLICKABLE);
	lv_img_set_src(ui->screen1_img_5,&_ncc_24x24);
	lv_img_set_pivot(ui->screen1_img_5, 0,0);
	lv_img_set_angle(ui->screen1_img_5, 0);

	//Write codes screen1_img_6
	ui->screen1_img_6 = lv_img_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_img_6, 32, 182);
	lv_obj_set_size(ui->screen1_img_6, 24, 24);

	//Write style state: LV_STATE_DEFAULT for style_screen1_img_6_main_main_default
	static lv_style_t style_screen1_img_6_main_main_default;
	if (style_screen1_img_6_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_img_6_main_main_default);
	else
		lv_style_init(&style_screen1_img_6_main_main_default);
	lv_style_set_img_recolor(&style_screen1_img_6_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_img_6_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_img_6_main_main_default, 255);
	lv_obj_add_style(ui->screen1_img_6, &style_screen1_img_6_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_add_flag(ui->screen1_img_6, LV_OBJ_FLAG_CLICKABLE);
	lv_img_set_src(ui->screen1_img_6,&_temp_24x24);
	lv_img_set_pivot(ui->screen1_img_6, 0,0);
	lv_img_set_angle(ui->screen1_img_6, 0);

	//Write codes screen1_img_7
	ui->screen1_img_7 = lv_img_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_img_7, 186, 182);
	lv_obj_set_size(ui->screen1_img_7, 24, 24);

	//Write style state: LV_STATE_DEFAULT for style_screen1_img_7_main_main_default
	static lv_style_t style_screen1_img_7_main_main_default;
	if (style_screen1_img_7_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_img_7_main_main_default);
	else
		lv_style_init(&style_screen1_img_7_main_main_default);
	lv_style_set_img_recolor(&style_screen1_img_7_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_img_7_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_img_7_main_main_default, 255);
	lv_obj_add_style(ui->screen1_img_7, &style_screen1_img_7_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_add_flag(ui->screen1_img_7, LV_OBJ_FLAG_CLICKABLE);
	lv_img_set_src(ui->screen1_img_7,&_drug_24x24);
	lv_img_set_pivot(ui->screen1_img_7, 0,0);
	lv_img_set_angle(ui->screen1_img_7, 0);

	//Write codes screen1_label_7
	ui->screen1_label_7 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_7, 33, 90);
	lv_obj_set_size(ui->screen1_label_7, 100, 20);
	lv_label_set_text(ui->screen1_label_7, "none");
	lv_label_set_long_mode(ui->screen1_label_7, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_7, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_7_main_main_default
	static lv_style_t style_screen1_label_7_main_main_default;
	if (style_screen1_label_7_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_7_main_main_default);
	else
		lv_style_init(&style_screen1_label_7_main_main_default);
	lv_style_set_radius(&style_screen1_label_7_main_main_default, 0);
	lv_style_set_bg_color(&style_screen1_label_7_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_color(&style_screen1_label_7_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_dir(&style_screen1_label_7_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_7_main_main_default, 0);
	lv_style_set_text_color(&style_screen1_label_7_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_7_main_main_default, &lv_font_arial_20);
	lv_style_set_text_letter_space(&style_screen1_label_7_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_7_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_7_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_7_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_7_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_7, &style_screen1_label_7_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_8
	ui->screen1_label_8 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_8, 189, 92);
	lv_obj_set_size(ui->screen1_label_8, 100, 20);
	lv_label_set_text(ui->screen1_label_8, "none");
	lv_label_set_long_mode(ui->screen1_label_8, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_8, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_8_main_main_default
	static lv_style_t style_screen1_label_8_main_main_default;
	if (style_screen1_label_8_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_8_main_main_default);
	else
		lv_style_init(&style_screen1_label_8_main_main_default);
	lv_style_set_radius(&style_screen1_label_8_main_main_default, 0);
	lv_style_set_bg_color(&style_screen1_label_8_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_color(&style_screen1_label_8_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_dir(&style_screen1_label_8_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_8_main_main_default, 0);
	lv_style_set_text_color(&style_screen1_label_8_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_8_main_main_default, &lv_font_arial_20);
	lv_style_set_text_letter_space(&style_screen1_label_8_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_8_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_8_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_8_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_8_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_8, &style_screen1_label_8_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_9
	ui->screen1_label_9 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_9, 37, 136);
	lv_obj_set_size(ui->screen1_label_9, 100, 20);
	lv_label_set_text(ui->screen1_label_9, "none");
	lv_label_set_long_mode(ui->screen1_label_9, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_9, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_9_main_main_default
	static lv_style_t style_screen1_label_9_main_main_default;
	if (style_screen1_label_9_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_9_main_main_default);
	else
		lv_style_init(&style_screen1_label_9_main_main_default);
	lv_style_set_radius(&style_screen1_label_9_main_main_default, 0);
	lv_style_set_bg_color(&style_screen1_label_9_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_color(&style_screen1_label_9_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_dir(&style_screen1_label_9_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_9_main_main_default, 0);
	lv_style_set_text_color(&style_screen1_label_9_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_9_main_main_default, &lv_font_arial_20);
	lv_style_set_text_letter_space(&style_screen1_label_9_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_9_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_9_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_9_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_9_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_9, &style_screen1_label_9_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_10
	ui->screen1_label_10 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_10, 190, 140);
	lv_obj_set_size(ui->screen1_label_10, 100, 20);
	lv_label_set_text(ui->screen1_label_10, "none");
	lv_label_set_long_mode(ui->screen1_label_10, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_10, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_10_main_main_default
	static lv_style_t style_screen1_label_10_main_main_default;
	if (style_screen1_label_10_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_10_main_main_default);
	else
		lv_style_init(&style_screen1_label_10_main_main_default);
	lv_style_set_radius(&style_screen1_label_10_main_main_default, 0);
	lv_style_set_bg_color(&style_screen1_label_10_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_color(&style_screen1_label_10_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_dir(&style_screen1_label_10_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_10_main_main_default, 0);
	lv_style_set_text_color(&style_screen1_label_10_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_10_main_main_default, &lv_font_arial_20);
	lv_style_set_text_letter_space(&style_screen1_label_10_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_10_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_10_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_10_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_10_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_10, &style_screen1_label_10_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_11
	ui->screen1_label_11 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_11, 33, 190);
	lv_obj_set_size(ui->screen1_label_11, 100, 20);
	lv_label_set_text(ui->screen1_label_11, "none");
	lv_label_set_long_mode(ui->screen1_label_11, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_11, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_11_main_main_default
	static lv_style_t style_screen1_label_11_main_main_default;
	if (style_screen1_label_11_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_11_main_main_default);
	else
		lv_style_init(&style_screen1_label_11_main_main_default);
	lv_style_set_radius(&style_screen1_label_11_main_main_default, 0);
	lv_style_set_bg_color(&style_screen1_label_11_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_color(&style_screen1_label_11_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_dir(&style_screen1_label_11_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_11_main_main_default, 0);
	lv_style_set_text_color(&style_screen1_label_11_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_11_main_main_default, &lv_font_arial_20);
	lv_style_set_text_letter_space(&style_screen1_label_11_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_11_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_11_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_11_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_11_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_11, &style_screen1_label_11_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_label_12
	ui->screen1_label_12 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_12, 186, 190);
	lv_obj_set_size(ui->screen1_label_12, 100, 20);
	lv_label_set_text(ui->screen1_label_12, "none");
	lv_label_set_long_mode(ui->screen1_label_12, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_12, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_12_main_main_default
	static lv_style_t style_screen1_label_12_main_main_default;
	if (style_screen1_label_12_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_12_main_main_default);
	else
		lv_style_init(&style_screen1_label_12_main_main_default);
	lv_style_set_radius(&style_screen1_label_12_main_main_default, 0);
	lv_style_set_bg_color(&style_screen1_label_12_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_color(&style_screen1_label_12_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_dir(&style_screen1_label_12_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_12_main_main_default, 0);
	lv_style_set_text_color(&style_screen1_label_12_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_12_main_main_default, &lv_font_arial_20);
	lv_style_set_text_letter_space(&style_screen1_label_12_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_12_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_12_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_12_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_12_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_12, &style_screen1_label_12_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_imgbtn_2
	ui->screen1_imgbtn_2 = lv_imgbtn_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_imgbtn_2, 284, 5);
	lv_obj_set_size(ui->screen1_imgbtn_2, 32, 27);

	//Write style state: LV_STATE_DEFAULT for style_screen1_imgbtn_2_main_main_default
	static lv_style_t style_screen1_imgbtn_2_main_main_default;
	if (style_screen1_imgbtn_2_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_imgbtn_2_main_main_default);
	else
		lv_style_init(&style_screen1_imgbtn_2_main_main_default);
	lv_style_set_text_color(&style_screen1_imgbtn_2_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor(&style_screen1_imgbtn_2_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_imgbtn_2_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_imgbtn_2_main_main_default, 255);
	lv_obj_add_style(ui->screen1_imgbtn_2, &style_screen1_imgbtn_2_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style state: LV_STATE_PRESSED for style_screen1_imgbtn_2_main_main_pressed
	static lv_style_t style_screen1_imgbtn_2_main_main_pressed;
	if (style_screen1_imgbtn_2_main_main_pressed.prop_cnt > 1)
		lv_style_reset(&style_screen1_imgbtn_2_main_main_pressed);
	else
		lv_style_init(&style_screen1_imgbtn_2_main_main_pressed);
	lv_style_set_text_color(&style_screen1_imgbtn_2_main_main_pressed, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen1_imgbtn_2_main_main_pressed, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen1_imgbtn_2_main_main_pressed, 0);
	lv_obj_add_style(ui->screen1_imgbtn_2, &style_screen1_imgbtn_2_main_main_pressed, LV_PART_MAIN|LV_STATE_PRESSED);

	//Write style state: LV_STATE_CHECKED for style_screen1_imgbtn_2_main_main_checked
	static lv_style_t style_screen1_imgbtn_2_main_main_checked;
	if (style_screen1_imgbtn_2_main_main_checked.prop_cnt > 1)
		lv_style_reset(&style_screen1_imgbtn_2_main_main_checked);
	else
		lv_style_init(&style_screen1_imgbtn_2_main_main_checked);
	lv_style_set_text_color(&style_screen1_imgbtn_2_main_main_checked, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen1_imgbtn_2_main_main_checked, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen1_imgbtn_2_main_main_checked, 0);
	lv_obj_add_style(ui->screen1_imgbtn_2, &style_screen1_imgbtn_2_main_main_checked, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_imgbtn_set_src(ui->screen1_imgbtn_2, LV_IMGBTN_STATE_RELEASED, NULL, &_235_alpha_32x27, NULL);
	lv_imgbtn_set_src(ui->screen1_imgbtn_2, LV_IMGBTN_STATE_PRESSED, NULL, &_235_alpha_32x27, NULL);
	lv_imgbtn_set_src(ui->screen1_imgbtn_2, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_235_alpha_32x27, NULL);
	lv_imgbtn_set_src(ui->screen1_imgbtn_2, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_hp_alpha_32x27, NULL);
	lv_obj_add_flag(ui->screen1_imgbtn_2, LV_OBJ_FLAG_CHECKABLE);

	//Write codes screen1_label_13
	ui->screen1_label_13 = lv_label_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_label_13, 114, 41);
	lv_obj_set_size(ui->screen1_label_13, 100, 11);
  sprintf((char*)temp_dataq, "%d.%d.%d",nwt.year,nwt.month,nwt.day);//网络日期
	lv_label_set_text_fmt(ui->screen1_label_13, "%s", (const char*)temp_dataq);
	//lv_label_set_text(ui->screen1_label_13, "2022.8.12");
	lv_label_set_long_mode(ui->screen1_label_13, LV_LABEL_LONG_WRAP);
	lv_obj_set_style_text_align(ui->screen1_label_13, LV_TEXT_ALIGN_CENTER, 0);

	//Write style state: LV_STATE_DEFAULT for style_screen1_label_13_main_main_default
	static lv_style_t style_screen1_label_13_main_main_default;
	if (style_screen1_label_13_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_label_13_main_main_default);
	else
		lv_style_init(&style_screen1_label_13_main_main_default);
	lv_style_set_radius(&style_screen1_label_13_main_main_default, 0);
	lv_style_set_bg_color(&style_screen1_label_13_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_color(&style_screen1_label_13_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
	lv_style_set_bg_grad_dir(&style_screen1_label_13_main_main_default, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen1_label_13_main_main_default, 0);
	lv_style_set_text_color(&style_screen1_label_13_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen1_label_13_main_main_default, &lv_font_arial_12);
	lv_style_set_text_letter_space(&style_screen1_label_13_main_main_default, 2);
	lv_style_set_pad_left(&style_screen1_label_13_main_main_default, 0);
	lv_style_set_pad_right(&style_screen1_label_13_main_main_default, 0);
	lv_style_set_pad_top(&style_screen1_label_13_main_main_default, 0);
	lv_style_set_pad_bottom(&style_screen1_label_13_main_main_default, 0);
	lv_obj_add_style(ui->screen1_label_13, &style_screen1_label_13_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes screen1_imgbtn_3
	ui->screen1_imgbtn_3 = lv_imgbtn_create(ui->screen1);
	lv_obj_set_pos(ui->screen1_imgbtn_3, 111, 24);
	lv_obj_set_size(ui->screen1_imgbtn_3, 100, 31);

	//Write style state: LV_STATE_DEFAULT for style_screen1_imgbtn_3_main_main_default
	static lv_style_t style_screen1_imgbtn_3_main_main_default;
	if (style_screen1_imgbtn_3_main_main_default.prop_cnt > 1)
		lv_style_reset(&style_screen1_imgbtn_3_main_main_default);
	else
		lv_style_init(&style_screen1_imgbtn_3_main_main_default);
	lv_style_set_text_color(&style_screen1_imgbtn_3_main_main_default, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor(&style_screen1_imgbtn_3_main_main_default, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_img_recolor_opa(&style_screen1_imgbtn_3_main_main_default, 0);
	lv_style_set_img_opa(&style_screen1_imgbtn_3_main_main_default, 255);
	lv_obj_add_style(ui->screen1_imgbtn_3, &style_screen1_imgbtn_3_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style state: LV_STATE_PRESSED for style_screen1_imgbtn_3_main_main_pressed
	static lv_style_t style_screen1_imgbtn_3_main_main_pressed;
	if (style_screen1_imgbtn_3_main_main_pressed.prop_cnt > 1)
		lv_style_reset(&style_screen1_imgbtn_3_main_main_pressed);
	else
		lv_style_init(&style_screen1_imgbtn_3_main_main_pressed);
	lv_style_set_text_color(&style_screen1_imgbtn_3_main_main_pressed, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen1_imgbtn_3_main_main_pressed, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen1_imgbtn_3_main_main_pressed, 0);
	lv_obj_add_style(ui->screen1_imgbtn_3, &style_screen1_imgbtn_3_main_main_pressed, LV_PART_MAIN|LV_STATE_PRESSED);

	//Write style state: LV_STATE_CHECKED for style_screen1_imgbtn_3_main_main_checked
	static lv_style_t style_screen1_imgbtn_3_main_main_checked;
	if (style_screen1_imgbtn_3_main_main_checked.prop_cnt > 1)
		lv_style_reset(&style_screen1_imgbtn_3_main_main_checked);
	else
		lv_style_init(&style_screen1_imgbtn_3_main_main_checked);
	lv_style_set_text_color(&style_screen1_imgbtn_3_main_main_checked, lv_color_make(0xFF, 0x33, 0xFF));
	lv_style_set_img_recolor(&style_screen1_imgbtn_3_main_main_checked, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_img_recolor_opa(&style_screen1_imgbtn_3_main_main_checked, 0);
	lv_obj_add_style(ui->screen1_imgbtn_3, &style_screen1_imgbtn_3_main_main_checked, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_add_flag(ui->screen1_imgbtn_3, LV_OBJ_FLAG_CHECKABLE);

	//Init events for screen
	events_init_screen1(ui);
}