[智能家居]小安派 DSL 通过MQTT 控制Home Assistant灯

[复制链接]
查看4617 | 回复13 | 2024-5-3 18:15:36 | 显示全部楼层 |阅读模式

本帖最后由 WT_0213 于 2024-5-6 14:35 编辑

内容简介

本文用到了,莫工抽奖送的 小安派 DSL 雷达检测站。曾经的开箱。

【板子开箱】Ai-Pi-R2 86盒开箱+雷达检测站 https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=43969

原本烧写的是雷达检测站固件,这里替换成智能桌面助手程序了。

智能桌面助手AiPi-DSL_Dashboard 源码及资料地址:

https://github.com/Ai-Thinker-Open/AiPi-Open-Kits/tree/master/AiPi-DSL_Dashboard

当前固件版本存在着一些bug这里进行了简单的修复。

proj.conf

set(CONFIG_BFLOG 1)
改为
set(CONFIG_BFLOG 0)

https_client.c

src_home_digital_clock_1_hour_value = atoi(date_s)+8;
改为
src_home_digital_clock_1_hour_value = (atoi(date_s)+8) % 24; #主要修复时间不正确

这里参考了,这篇文章

【挑战】出厂固件时间错误问题修正 https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=43278

https_client.h

#define HTTP_HOST "v0.yiketianqi.com"
#define HTTP_PATH "free/week?unescape=1&appid=17769781&appsecret=5IbudTJx"
改为
#define HTTP_HOST "v1.yiketianqi.com"
#define HTTP_PATH "free/week?unescape=1&appid=替换&appsecret=替换"

天气api有些变化,appid和appsecret替换成自己的。

免费天气API接口|天气预报接口|全球天气API接口|气象预警|空气质量 (yiketianqi.com)

注册复制替换即可。

events_init.c

if (!mqtt_start_connect(lv_textarea_get_text(guider_ui.src_home_ta_mqHost), atoi(lv_textarea_get_text(guider_ui.src_home_ta_mqPort)), lv_textarea_get_text(guider_ui.src_home_ta_mqUsername), lv_textarea_get_text(guider_ui.src_home_ta_mqPort))) {
改为
if (!mqtt_start_connect(lv_textarea_get_text(guider_ui.src_home_ta_mqHost), atoi(lv_textarea_get_text(guider_ui.src_home_ta_mqPort)), lv_textarea_get_text(guider_ui.src_home_ta_mqUsername), lv_textarea_get_text(guider_ui.src_home_ta_mqtt_pass))) {

这里需要注意以下,源码中MQTT密码填写错误了,guider_ui.src_home_ta_mqPort改成guider_ui.src_home_ta_mqtt_pass

不然使用MQTT程序会持续崩溃。

setup_scr_src_home.c

lv_label_set_text(ui->src_home_label_dizhi, "深圳市");
改为
lv_label_set_text(ui->src_home_label_dizhi, "自己所在城市");

这里不改也没关系,不过默认显示自己所在城市感觉更好一些。

setup_smarctrl.c

lv_textarea_set_text(ui->src_home_ta_mqHost, "broker.emqx.io");
改为
lv_textarea_set_text(ui->src_home_ta_mqHost, "自己MQTT域名或IP");

lv_textarea_set_text(ui->src_home_ta_mqUsername, "AiPi_Dashboard");
改为
lv_textarea_set_text(ui->src_home_ta_mqUsername, "自己MQTT用户名");

lv_textarea_set_text(ui->src_home_ta_mqtt_pass, "123456");
改为
lv_textarea_set_text(ui->src_home_ta_mqtt_pass, "自己MQTT密码");

lv_textarea_set_text(ui->src_home_ta_topic, "dev/topic");
改为
lv_textarea_set_text(ui->src_home_ta_topic, "自己自动化中用来开灯或控制HA设备的主题");

自动化控制设备参考

【智能家居】MQTT控制HomeAssistant设备 https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=44644

到这里,DSL 智能桌面助手 固件程序修改完成。烧录后链接MQTT就可以控制HA设备。

下面修改代码文件的完整代码

proj.conf

# Components
set(CONFIG_BFLOG 0)
set(CONFIG_FREERTOS 1)
set(CONFIG_POSIX 1)
set(CONFIG_TLSF 1)
set(CONFIG_SHELL 0)
set(CONFIG_LWIP 1)
set(CONFIG_WIFI6 1)
set(CONFIG_RF 1)
set(CONFIG_MBEDTLS 0)
set(CONFIG_DHCPD 1)
set(CONFIG_PING 1)
set(CONFIG_MQTT 1)

set(CONFIG_PSRAM 1)
set(CONFIG_BSP_LCD 1)
set(CONFIG_BSP_TOUCH 1)
set(CONFIG_LVGL 1)

set(CONFIG_PARTITION 1)
set(CONFIG_BFLB_MTD 1)
set(CONFIG_EASYFLASH4 1)

# Config
## mbedtls
set(CONFIG_MBEDTLS 1)
set(CONFIG_MBEDTLS_AES_USE_HW 0)
set(CONFIG_MBEDTLS_BIGNUM_USE_HW 0)
set(CONFIG_MBEDTLS_ECC_USE_HW 0)
set(CONFIG_MBEDTLS_SHA1_USE_HW 0)
set(CONFIG_MBEDTLS_SHA256_USE_HW 0)
set(CONFIG_MBEDTLS_SHA512_USE_HW 0)

# wifi
set(CONFIG_VIF_MAX 2)
set(CONFIG_STA_MAX 4)

set(CONFIG_MAC_TXQ_DEPTH 16)
set(CONFIG_MAC_RXQ_DEPTH 12)

# BLE
set(CONFIG_BLUETOOTH 1)
set(CONFIG_BTBLECONTROLLER_LIB ble1m10s1bredr0)
set(CONFIG_BLE_USE_MAC2 0)
set(CONFIG_BT_BAS_SERVER 1)
set(CONFIG_BT_DIS_SERVER 1)
set(CONFIG_BT_DEVICE_APPEARANCE 0x03c1)
set(CONFIG_BT_SETTINGS 1)

https_client.c

/**
 * @file https_client.c
 * @author your name ([email]you@domain.com[/email])
 * @brief
 * @version 0.1
 * @date 2023-06-21
 *
 * @copyright Copyright (c) 2023
 *
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
#include "custom.h"
#include <sys/socket.h>
#include <lwip/api.h>
#include <lwip/arch.h>
#include <lwip/opt.h>
#include <lwip/inet.h>
#include <lwip/sockets.h>
#include <lwip/netdb.h>
#include <lwip/tcp.h>

#include "mbedtls/platform.h"
#include "mbedtls/net_sockets.h"
#include "mbedtls/ssl.h"
#include "mbedtls/entropy.h"
#include "mbedtls/ctr_drbg.h"
#include "mbedtls/error.h"
#include "mbedtls/md5.h"
#include "mbedtls/debug.h"
#include "log.h"

#include "https_client.h"
#include "user_mqtt.h"
// #define REQUEST_HTTPS
#define REQUEST_HTTP

extern TimerHandle_t http_timers;

#ifdef REQUEST_HTTPS

#define DBG_TAG "HTTPS"
#define WEB_PORT "443"

static const uint8_t* CERTIFICATE_FILENAME = { "-----BEGIN CERTIFICATE-----\r\n"
                                                    "MIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/\n"
                                                    "MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT\n"
                                                    "DkRTVCBSb290IENBIFgzMB4XDTE2MDMxNzE2NDA0NloXDTIxMDMxNzE2NDA0Nlow\n"
                                                    "SjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxIzAhBgNVBAMT\n"
                                                    "GkxldCdzIEVuY3J5cHQgQXV0aG9yaXR5IFgzMIIBIjANBgkqhkiG9w0BAQEFAAOC\n"
                                                    "AQ8AMIIBCgKCAQEAnNMM8FrlLke3cl03g7NoYzDq1zUmGSXhvb418XCSL7e4S0EF\n"
                                                    "q6meNQhY7LEqxGiHC6PjdeTm86dicbp5gWAf15Gan/PQeGdxyGkOlZHP/uaZ6WA8\n"
                                                    "SMx+yk13EiSdRxta67nsHjcAHJyse6cF6s5K671B5TaYucv9bTyWaN8jKkKQDIZ0\n"
                                                    "Z8h/pZq4UmEUEz9l6YKHy9v6Dlb2honzhT+Xhq+w3Brvaw2VFn3EK6BlspkENnWA\n"
                                                    "a6xK8xuQSXgvopZPKiAlKQTGdMDQMc2PMTiVFrqoM7hD8bEfwzB/onkxEz0tNvjj\n"
                                                    "/PIzark5McWvxI0NHWQWM6r6hCm21AvA2H3DkwIDAQABo4IBfTCCAXkwEgYDVR0T\n"
                                                    "AQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwfwYIKwYBBQUHAQEEczBxMDIG\n"
                                                    "CCsGAQUFBzABhiZodHRwOi8vaXNyZy50cnVzdGlkLm9jc3AuaWRlbnRydXN0LmNv\n"
                                                    "bTA7BggrBgEFBQcwAoYvaHR0cDovL2FwcHMuaWRlbnRydXN0LmNvbS9yb290cy9k\n"
                                                    "c3Ryb290Y2F4My5wN2MwHwYDVR0jBBgwFoAUxKexpHsscfrb4UuQdf/EFWCFiRAw\n"
                                                    "VAYDVR0gBE0wSzAIBgZngQwBAgEwPwYLKwYBBAGC3xMBAQEwMDAuBggrBgEFBQcC\n"
                                                    "ARYiaHR0cDovL2Nwcy5yb290LXgxLmxldHNlbmNyeXB0Lm9yZzA8BgNVHR8ENTAz\n"
                                                    "MDGgL6AthitodHRwOi8vY3JsLmlkZW50cnVzdC5jb20vRFNUUk9PVENBWDNDUkwu\n"
                                                    "Y3JsMB0GA1UdDgQWBBSoSmpjBH3duubRObemRWXv86jsoTANBgkqhkiG9w0BAQsF\n"
                                                    "AAOCAQEA3TPXEfNjWDjdGBX7CVW+dla5cEilaUcne8IkCJLxWh9KEik3JHRRHGJo\n"
                                                    "uM2VcGfl96S8TihRzZvoroed6ti6WqEBmtzw3Wodatg+VyOeph4EYpr/1wXKtx8/\n"
                                                    "wApIvJSwtmVi4MFU5aMqrSDE6ea73Mj2tcMyo5jMd6jmeWUHK8so/joWUoHOUgwu\n"
                                                    "X4Po1QYz+3dszkDqMp4fklxBwXRsW10KXzPMTZ+sOPAveyxindmjkW8lGy+QsRlG\n"
                                                    "PfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6\n"
                                                    "KOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==\n"
                                                    "-----END CERTIFICATE-----\r\n"
};

#elif defined REQUEST_HTTP

#define DBG_TAG "HTTP"
#define WEB_PORT "80"
int sock_client = -1;
static struct sockaddr_in dest;
#endif

static const char* REQUEST = "GET " "/%s" " HTTP/1.0\r\n"
"Host: " "%s" ":" WEB_PORT "\r\n"
"User-Agent: AiPi-DSL_Dashboard\r\n"
"\r\n";

extern TaskHandle_t https_Handle;
extern xQueueHandle queue;
/**
 * @brief https get request
 *
 * @param host
 * @param https_url https path /free/week?unescape=1&appid=17769781&appsecret=5IbudTJx
 * @return char*
*/
char* https_get_request(const char* host, const char* https_url)
{
    static char* buff;
    char* https_request_handle = pvPortMalloc(512);
    int ret, flags, len;
    buff = pvPortMalloc(2*1024);
    memset(buff, 0, 2*1024);

#ifdef REQUEST_HTTPS

    mbedtls_entropy_context entropy;
    mbedtls_ctr_drbg_context ctr_drbg;
    mbedtls_ssl_context ssl;
    mbedtls_x509_crt cacert;
    mbedtls_ssl_config conf;
    mbedtls_net_context server_fd;

    mbedtls_ssl_init(&ssl);
    mbedtls_x509_crt_init(&cacert);
    mbedtls_ctr_drbg_init(&ctr_drbg);
    LOG_I("Seeding the random number generator");

    mbedtls_ssl_config_init(&conf);

    mbedtls_entropy_init(&entropy);
    if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy,
        NULL, 0)) != 0)
    {
        LOG_I("mbedtls_ctr_drbg_seed returned %d", ret);
        abort();
    }

    LOG_I("Loading the CA root certificate...");

    ret = mbedtls_x509_crt_parse(&cacert,
                                 CERTIFICATE_FILENAME,
                                 strlen((char*)CERTIFICATE_FILENAME) + 1);

    if (ret < 0)
    {
        LOG_E("mbedtls_x509_crt_parse returned -0x%x\n\n", -ret);
        abort();
    }

    LOG_I("Setting hostname for TLS session...");

    /* Hostname set here should match CN in server certificate */
    if ((ret = mbedtls_ssl_set_hostname(&ssl, host)) != 0)
    {
        LOG_E("mbedtls_ssl_set_hostname returned -0x%x", -ret);
        abort();
    }

    LOG_I("Setting up the SSL/TLS structure...");

    if ((ret = mbedtls_ssl_config_defaults(&conf,
        MBEDTLS_SSL_IS_CLIENT,
        MBEDTLS_SSL_TRANSPORT_STREAM,
        MBEDTLS_SSL_PRESET_DEFAULT)) != 0)
    {
        LOG_E("mbedtls_ssl_config_defaults returned %d", ret);
        goto exit;
    }

    /* MBEDTLS_SSL_VERIFY_OPTIONAL is bad for security, in this example it will print
       a warning if CA verification fails but it will continue to connect.

       You should consider using MBEDTLS_SSL_VERIFY_REQUIRED in your own code.
    */
    mbedtls_ssl_conf_authmode(&conf, MBEDTLS_SSL_VERIFY_OPTIONAL);
    mbedtls_ssl_conf_ca_chain(&conf, &cacert, NULL);
    mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg);

    if ((ret = mbedtls_ssl_setup(&ssl, &conf)) != 0)
    {
        LOG_E("mbedtls_ssl_setup returned -0x%x", -ret);
        goto exit;
    }

    mbedtls_net_init(&server_fd);

    LOG_I("Connecting to %s:%s...", host, WEB_PORT);
    LOG_I("");
    if ((ret = mbedtls_net_connect(&server_fd, host,
        WEB_PORT, MBEDTLS_NET_PROTO_TCP)) != 0)
    {
        LOG_E("mbedtls_net_connect returned -%x", -ret);
        goto exit;
    }

    LOG_I("Connected.");

    mbedtls_ssl_set_bio(&ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL);

    LOG_I("Performing the SSL/TLS handshake...");

    while ((ret = mbedtls_ssl_handshake(&ssl)) != 0)
    {
        if (ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE)
        {
            LOG_E("mbedtls_ssl_handshake returned -0x%x", -ret);
            goto exit;
        }
    }

    LOG_I("Verifying peer X.509 certificate...");

    if ((flags = mbedtls_ssl_get_verify_result(&ssl)) != 0)
    {
        /* In real life, we probably want to close connection if ret != 0 */
        LOG_E("Failed to verify peer certificate!");
        bzero(buff, sizeof(buff));
        mbedtls_x509_crt_verify_info(buff, sizeof(buff), "  ! ", flags);
        LOG_E("verification info: %s", buff);

    }
    else
    {
        LOG_I("Certificate verified.");
    }

    LOG_I("Cipher suite is %s", mbedtls_ssl_get_ciphersuite(&ssl));

    LOG_I("Writing HTTP request:");
    sprintf(https_request_handle, REQUEST, https_url, host);
    LOG_I("%s", https_request_handle);
    size_t written_bytes = 0;
    do
    {

        ret = mbedtls_ssl_write(&ssl,
                                (const unsigned char*)https_request_handle + written_bytes,
                                strlen(https_request_handle) - written_bytes);
        if (ret >= 0)
        {
            LOG_I("%d bytes written", ret);
            written_bytes += ret;
        }
        else if (ret != MBEDTLS_ERR_SSL_WANT_WRITE && ret != MBEDTLS_ERR_SSL_WANT_READ)
        {
            LOG_E("mbedtls_ssl_write returned -0x%x", -ret);
            goto exit;
        }
    } while (written_bytes < strlen(REQUEST));

    LOG_I("Reading HTTP response...");
    len = 0;
    do
    {
        char* buff_s = pvPortMalloc(32);
        bzero(buff_s, sizeof(buff_s));
        ret = mbedtls_ssl_read(&ssl, (unsigned char*)buff_s, 32);

        if (ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE)
            continue;

        if (ret == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY)
        {
            ret = 0;
            break;
        }

        if (ret < 0)
        {
            LOG_E("mbedtls_ssl_read returned -0x%x", -ret);
            break;
        }

        if (ret == 0)
        {
            LOG_I("connection closed");
            break;
        }
        len += ret;
        /* Print response directly to stdout as it is read */
        // for (int i = 0; i < len; i++)
        // {
        //     LOG_I("%c", buff[i]);
        // }
        // strcat(buff, buff_s);
        strncat(buff, buff_s, ret);
        vPortFree(buff_s);
    } while (1);

    mbedtls_ssl_close_notify(&ssl);
    LOG_I("https read len :%d", len);
exit:
    mbedtls_ssl_session_reset(&ssl);
    mbedtls_net_free(&server_fd);

    if (ret != 0)
    {
        mbedtls_strerror(ret, buff, 100);
        LOG_E("Last error was: -0x%x - %s", -ret, buff);
        return NULL;
    }

    LOG_I(""); // JSON output doesn't have a newline at end

    static int request_count;
    LOG_I("Completed %d requests", ++request_count);

#elif defined  REQUEST_HTTP
    struct in_addr addr;

#ifdef LWIP_DNS
    netconn_gethostbyname(host, &addr);
    LOG_I("Host:%s, Server ip Address : %s:%s", host, ip_ntoa(&addr), WEB_PORT);
#endif
    //Crate tcp socket
    sock_client = socket(AF_INET, SOCK_STREAM, 0);
    if (ret<0) {
        LOG_E("Failed to allocate socket.");
        goto __exit;
    }
    LOG_I("allocated socket");

    dest.sin_family = AF_INET;
    dest.sin_port = htons(atoi(WEB_PORT));
    dest.sin_addr = addr;
    //connect http server
    ret = connect(sock_client, (struct sockaddr*)&dest, sizeof(dest));
    if (ret!=0) {
        LOG_E("... socket connect failed errno=%d", errno);
        close(sock_client);
        goto __exit;
    }
    LOG_I("HTTP client connect server success!");

    //send request
    memset(https_request_handle, 0, 256);
    sprintf(https_request_handle, REQUEST, https_url, host);
    ret = write(sock_client, https_request_handle, strlen(https_request_handle));
    if (ret< 0) {
        LOG_E("HTTP send Handler failed error=%d", ret);
        close(sock_client);
        goto __exit;
    }
    LOG_I("request send OK", ret);
    LOG_F("Handler byte=%d\r\n%s", ret, https_request_handle);


    flags = read(sock_client, buff, 1024*2);
    LOG_F("\r\n%s", buff);

    shutdown(sock_client, SHUT_RDWR);
    close(sock_client);

#endif
__exit:

    vPortFree(https_request_handle);
    return buff;
}
/**
 * @brief Get the https date object
 *  Date: Sun, 25 Jun 2023 02:37:04 GMT
 * @param date
*/
static void get_https_date(char* date)
{
    if (date==NULL) {
        LOG_E("DATE data is NULL ");
        return;
    }

    char* date_data = date + 6;
    char* date_wday = strtok(date_data, ",");
    if (strcmp(date_wday, "Sun")==0)src_home_digital_date_wday_value = 0;
    if (strcmp(date_wday, "Mon")==0)src_home_digital_date_wday_value = 1;
    if (strcmp(date_wday, "Tue")==0)src_home_digital_date_wday_value = 2;
    if (strcmp(date_wday, "Wed")==0)src_home_digital_date_wday_value = 3;
    if (strcmp(date_wday, "Thu")==0)src_home_digital_date_wday_value = 4;
    if (strcmp(date_wday, "Fri")==0)src_home_digital_date_wday_value = 5;
    if (strcmp(date_wday, "Sat")==0)src_home_digital_date_wday_value = 6;
    date_data += 5;

    char* date_day = strtok(date_data, " ");
    src_home_digital_date_day_value = atoi(date_day);
    int i = 0;
    while (date_day!=NULL) {
        date_day = strtok(NULL, " ");
        if (i==0) {
            if (strcmp(date_day, "Jan")==0)src_home_digital_date_mont_value = 1;
            if (strcmp(date_day, "Feb")==0)src_home_digital_date_mont_value = 2;
            if (strcmp(date_day, "Mar")==0)src_home_digital_date_mont_value = 3;
            if (strcmp(date_day, "Apr")==0)src_home_digital_date_mont_value = 4;
            if (strcmp(date_day, "May")==0)src_home_digital_date_mont_value = 5;
            if (strcmp(date_day, "Jun")==0)src_home_digital_date_mont_value = 6;
            if (strcmp(date_day, "Jul")==0)src_home_digital_date_mont_value = 7;
            if (strcmp(date_day, "Aug")==0)src_home_digital_date_mont_value = 8;
            if (strcmp(date_day, "Sept")==0)src_home_digital_date_mont_value = 9;
            if (strcmp(date_day, "Oct")==0)src_home_digital_date_mont_value = 10;
            if (strcmp(date_day, "Nov")==0)src_home_digital_date_mont_value = 11;
            if (strcmp(date_day, "Dec")==0)src_home_digital_date_mont_value = 12;
        }
        if (i==1) src_home_digital_date_yesr_value = atoi(date_day);

        if (i==2) {
            char* date_s = strtok(date_day, ":");
            src_home_digital_clock_1_hour_value = (atoi(date_s)+8) % 24;
            for (size_t j = 0; j < 2; j++)
            {
                date_s = strtok(NULL, ":");
                if (j==0) src_home_digital_clock_1_min_value = atoi(date_s);
                else src_home_digital_clock_1_sec_value = atoi(date_s);
            }
        }
        i++;
    }
}

/**
 * @brief HTTP解析请求数据
 *
 * @param https_request_data
 * @return char*
*/
static char* https_get_data(const char* https_request_data)
{
    if (https_get_data==NULL) return NULL;

    char* request_data = https_request_data;
    static char* https_data;
    https_data = pvPortMalloc(1024*2);
    memset(https_data, 0, 1024*2);
    request_data += 2;
    char* date = pvPortMalloc(64);
    char* request_value = strtok(request_data, "\n");
    for (size_t i = 0; i < 9; i++)
    {
        LOG_I("%s", request_value);
        if (i==2) strcpy(date, request_value);
        memset(request_value, 0, strlen(request_value));
        request_value = strtok(NULL, "\n");
    }
    get_https_date(date);
    strcpy(https_data, request_value);
    vPortFree(https_request_data);
    vPortFree(date);
    return https_data;
}

void https_get_weather_task(void* arg)
{
    char* queue_buff = NULL;
    queue_buff = pvPortMalloc(1024*2);
    memset(queue_buff, 0, 1024*2);
    //
    char* buff = https_get_data(https_get_request(HTTP_HOST, HTTP_PATH));
    sprintf(queue_buff, "{\"weather\":%s}", buff);
    xQueueSend(queue, queue_buff, portMAX_DELAY);
    vPortFree(buff);
    vPortFree(queue_buff);
    xTimerStart(http_timers, portMAX_DELAY);
    LOG_I("Time start 1 hour times ....");
    vTaskSuspend(https_Handle);

    while (1) {

        queue_buff = pvPortMalloc(1024*2);
        //请求一次错误的响应,只获取时间
        char* buff = https_get_data(https_get_request(HTTP_HOST, HTTP_PATH));
        memset(queue_buff, 0, 1024*2);
        sprintf(queue_buff, "{\"weather\":%s}", buff);
        xQueueSend(queue, queue_buff, portMAX_DELAY);
        vPortFree(buff);
        vPortFree(queue_buff);
        vTaskSuspend(https_Handle);
        vTaskDelay(50/portTICK_RATE_MS);
    }
}

https_client.h

/**
 * @file https_client.h
 * @author your name ([email]you@domain.com[/email])
 * @brief
 * @version 0.1
 * @date 2023-06-21
 *
 * @copyright Copyright (c) 2023
 *
*/
#ifndef HTTPS_CLIENT_H
#define HTTPS_CLIENT_H
#ifdef __cplusplus
extern "C" {
#endif

#define HTTP_HOST "v1.yiketianqi.com"
#define HTTP_PATH "free/week?unescape=1&appid=替换&appsecret=替换"

    char* https_get_request(const char* host, const char* https_url);
    void https_get_weather_task(void* arg);
    char* compare_wea_output_img_100x100(const char* weather_data);
#ifdef __cplusplus
}
#endif
#endif

events_init.c

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

#include "events_init.h"
#include <stdio.h>
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
#include "lvgl.h"
#include "log.h"
#include "bflb_uart.h"
#include "voice_uart.h"
#include "ble_hid_dev.h"
#include "user_mqtt.h"
#define DBG_TAG "LV EVENT"

TimerHandle_t loading_time;

extern xQueueHandle queue;
extern QueueHandle_t ble_hid_queue;
static void loading_timer_cb(TimerHandle_t timer)
{
    int time_cout = (int)pvTimerGetTimerID(timer);
    lv_img_set_angle(guider_ui.src_home_img_loding, time_cout*30*10);

    if (time_cout>=11) time_cout = 0;
    else
        time_cout++;
    vTimerSetTimerID(timer, (void*)time_cout);
}

void events_init(lv_ui* ui)
{
    loading_time = xTimerCreate("loading_time", pdMS_TO_TICKS(100), pdTRUE, 0, loading_timer_cb);
    if (loading_time!=NULL)LOG_I("loading time create OK");
}

static void src_home_imgbtn_openL_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    switch (code)
    {
        case LV_EVENT_LONG_PRESSED:
        {
            lv_obj_clear_flag(guider_ui.src_home_cont_6, LV_OBJ_FLAG_HIDDEN);
        }
        break;
        case LV_EVENT_CLICKED:
        {
            lv_obj_add_flag(guider_ui.src_home_imgbtn_openL, LV_OBJ_FLAG_HIDDEN);
            lv_obj_clear_flag(guider_ui.src_home_imgbtn_closeL, LV_OBJ_FLAG_HIDDEN);
            LOG_I("src_home_imgbtn_openL_event_handler");
            if (mqtt_app_publish(lv_textarea_get_text(guider_ui.src_home_ta_topic), lv_textarea_get_text(guider_ui.src_home_ta_msg_close), 0)!=0)
            {
                LOG_I("src_home_imgbtn_openL_event_handler1");
                lv_label_set_text(guider_ui.src_home_label_14, "mqtt disconnect");
                lv_obj_set_style_text_color(guider_ui.src_home_label_14, lv_color_make(0xff, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
            }
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_confiL_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            lv_obj_clear_flag(guider_ui.src_home_cont_6, LV_OBJ_FLAG_HIDDEN);
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_closeL_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    lv_ui* ui = (lv_ui*)lv_event_get_user_data(e);
    switch (code)
    {
        case LV_EVENT_LONG_PRESSED:
        {
            lv_obj_clear_flag(ui->src_home_cont_6, LV_OBJ_FLAG_HIDDEN);
        }
        break;
        case LV_EVENT_CLICKED:
        {
            lv_obj_add_flag(ui->src_home_imgbtn_closeL, LV_OBJ_FLAG_HIDDEN);
            lv_obj_clear_flag(ui->src_home_imgbtn_openL, LV_OBJ_FLAG_HIDDEN);

            if (mqtt_app_publish(lv_textarea_get_text(ui->src_home_ta_topic), lv_textarea_get_text(ui->src_home_ta_msg_open), 0)!=0)
            {
                lv_label_set_text(ui->src_home_label_14, "mqtt disconnect");
                lv_obj_set_style_text_color(ui->src_home_label_14, lv_color_make(0xff, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
            }
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_user_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            lv_obj_clear_flag(guider_ui.src_home_cont_3, LV_OBJ_FLAG_HIDDEN);
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_10_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            lv_obj_add_flag(guider_ui.src_home_cont_3, LV_OBJ_FLAG_HIDDEN);
        }
        break;
        default:
            break;
    }
}

static void src_home_btn_connect_mqtt_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            LOG_I("btn_connect_mqtt CLICKED");
            lv_obj_clear_flag(guider_ui.src_home_cont_5, LV_OBJ_FLAG_HIDDEN);
            xTimerStart(loading_time, 100/portTICK_PERIOD_MS);

            mqtt_client_init(lv_textarea_get_text(guider_ui.src_home_ta_mqHost), atoi(lv_textarea_get_text(guider_ui.src_home_ta_mqPort)));
            mqtt_client_register_event();
            vTaskDelay(500/portTICK_PERIOD_MS);
            if (!mqtt_start_connect(lv_textarea_get_text(guider_ui.src_home_ta_mqHost), atoi(lv_textarea_get_text(guider_ui.src_home_ta_mqPort)), lv_textarea_get_text(guider_ui.src_home_ta_mqUsername), lv_textarea_get_text(guider_ui.src_home_ta_mqtt_pass))) {
                lv_event_send(guider_ui.src_home_img_loding, LV_EVENT_CLICKED, NULL);
                lv_event_send(guider_ui.src_home_imgbtn_10, LV_EVENT_CLICKED, NULL);
                lv_label_set_text_fmt(guider_ui.src_home_label_14, "%s:%s", lv_textarea_get_text(guider_ui.src_home_ta_mqHost), lv_textarea_get_text(guider_ui.src_home_ta_mqPort));
                lv_obj_set_style_text_color(guider_ui.src_home_label_14, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
            }
            else {
                lv_label_set_text(guider_ui.src_home_label_14, "mqtt disconnect");
                lv_obj_set_style_text_color(guider_ui.src_home_label_14, lv_color_make(0xff, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
            }
        }
        break;
        default:
            break;
    }
}

static void src_home_btn_topicOK_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            lv_obj_add_flag(guider_ui.src_home_cont_6, LV_OBJ_FLAG_HIDDEN);
            mqtt_app_subscribe("ha/ai", 0);
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_stop_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    hid_key_num_t hid_key_num = HID_KEY_NUMBLE_MISIC_STOP;
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            LOG_I("imgbtn_stop CLICKED");
            lv_obj_clear_flag(guider_ui.src_home_imgbtn_satrt, LV_OBJ_FLAG_HIDDEN);
            lv_obj_add_flag(guider_ui.src_home_imgbtn_stop, LV_OBJ_FLAG_HIDDEN);
            xQueueSend(ble_hid_queue, &hid_key_num, portMAX_DELAY);
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_satrt_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    hid_key_num_t hid_key_num = HID_KEY_NUMBLE_MISIC_PLAY;
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            LOG_I("imgbtn_satrt CLICKED");
            lv_obj_clear_flag(guider_ui.src_home_imgbtn_stop, LV_OBJ_FLAG_HIDDEN);
            lv_obj_add_flag(guider_ui.src_home_imgbtn_satrt, LV_OBJ_FLAG_HIDDEN);
            xQueueSend(ble_hid_queue, &hid_key_num, portMAX_DELAY);
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_voice_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    hid_key_num_t hid_key_num = HID_KEY_NUMBLE_VOL_MUTE;
    static struct bflb_device_s* uartx;
    uartx = bflb_device_get_by_name("uart1");
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            LOG_I("imgbtn_voice CLICKED");
            lv_obj_clear_flag(guider_ui.src_home_imgbtn_novoice, LV_OBJ_FLAG_HIDDEN);
            lv_obj_add_flag(guider_ui.src_home_imgbtn_voice, LV_OBJ_FLAG_HIDDEN);
            xQueueSend(ble_hid_queue, &hid_key_num, portMAX_DELAY);
            bflb_uart_put(uartx, user_data[UART_CMD_VOL_MUTE_OK].uart_data.data, 4);
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_novoice_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    hid_key_num_t hid_key_num = HID_KEY_NUMBLE_VOL_MUTE;
    static struct bflb_device_s* uartx;
    uartx = bflb_device_get_by_name("uart1");
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            lv_obj_clear_flag(guider_ui.src_home_imgbtn_voice, LV_OBJ_FLAG_HIDDEN);
            lv_obj_add_flag(guider_ui.src_home_imgbtn_novoice, LV_OBJ_FLAG_HIDDEN);
            xQueueSend(ble_hid_queue, &hid_key_num, portMAX_DELAY);
            bflb_uart_put(uartx, user_data[UART_CMD_VOL_MUTE_NG].uart_data.data, 4);
        }
        break;
        default:
            break;
    }
}

static void src_home_img_wifi_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    switch (code)
    {
        default:
            break;
    }
}

static void src_home_btn_connect_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    lv_ui* ui = lv_event_get_user_data(e);
    char* buff = pvPortMalloc(64);
    char* wifi_msg = pvPortMalloc(256);
    memset(wifi_msg, 0, 256);
    memset(buff, 0, 64);

    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            LOG_I("btn_connect CLICKED");
            lv_obj_clear_flag(guider_ui.src_home_cont_5, LV_OBJ_FLAG_HIDDEN);
            xTimerStart(loading_time, 100/portTICK_PERIOD_MS);
            lv_dropdown_get_selected_str(ui->src_home_ddlist_1, buff, 64);
            char* data_pass = lv_textarea_get_text(ui->src_home_ta_1);
            // lv_dropdown_set_options();
            LOG_I("src_home_ddlist_1 selected_str HEX;%02X", buff[0]);
            sprintf(wifi_msg, "{\"WiFi\":{\"ssid\":\"%s\",\"password\":\"%s\"}}", buff, data_pass);
            xQueueSend(queue, wifi_msg, portMAX_DELAY);
        }
        break;
        default:
            break;
    }
    vPortFree(buff);
    vPortFree(wifi_msg);
}

static void src_home_img_loding_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            LOG_I("img_loding CLICKED");
            lv_obj_add_flag(guider_ui.src_home_cont_5, LV_OBJ_FLAG_HIDDEN);
            xTimerStop(loading_time, 100/portTICK_PERIOD_MS);
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_dashboard(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    hid_key_num_t hid_key_num = (hid_key_num_t)lv_event_get_user_data(e);
    static struct bflb_device_s* uartx;
    uartx = bflb_device_get_by_name("uart1");
    switch (code) {
        case LV_EVENT_CLICKED:
        {
            xQueueSend(ble_hid_queue, &hid_key_num, portMAX_DELAY);
            switch (hid_key_num)
            {
                case HID_KEY_NUMBLE_MISIC_NEXT:
                case HID_KEY_NUMBLE_MISIC_PAST:
                    bflb_uart_put(uartx, user_data[UART_CMD_MUSIC_NEXT].uart_data.data, 4);
                    break;
                default:
                    break;
            }
        }
        break;

        default:
            break;
    }
}

static void src_home_imgbtn_vol_I_cb(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    hid_key_num_t hid_key_num = HID_KEY_NUMBLE_VOL_UP;
    switch (code) {
        case LV_EVENT_CLICKED:
        {
            LOG_I("imgbtn_vol_I CLICKED");

            lv_obj_clear_flag(guider_ui.src_home_imgbtn_voice, LV_OBJ_FLAG_HIDDEN);
            lv_obj_add_flag(guider_ui.src_home_imgbtn_novoice, LV_OBJ_FLAG_HIDDEN);
            xQueueSend(ble_hid_queue, &hid_key_num, portMAX_DELAY);
        }
        break;
        case LV_EVENT_LONG_PRESSED_REPEAT:
        {
            xQueueSend(ble_hid_queue, &hid_key_num, portMAX_DELAY);
        }
        break;
        default:
            break;
    }
}

static void src_home_imgbtn_vol_n_cb(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    hid_key_num_t hid_key_num = HID_KEY_NUMBLE_VOL_DOWN;
    switch (code) {
        case LV_EVENT_PRESSED:
        {
            LOG_I("imgbtn_vol_n CLICKED");
            lv_obj_clear_flag(guider_ui.src_home_imgbtn_voice, LV_OBJ_FLAG_HIDDEN);
            lv_obj_add_flag(guider_ui.src_home_imgbtn_novoice, LV_OBJ_FLAG_HIDDEN);
            xQueueSend(ble_hid_queue, &hid_key_num, portMAX_DELAY);
        }
        break;
        case LV_EVENT_LONG_PRESSED_REPEAT:
        {
            xQueueSend(ble_hid_queue, &hid_key_num, portMAX_DELAY);
        }
        break;
        default:
            break;
    }
}
/**
 * @brief 启动搜索
 *
 * @param e
*/
static void src_home_imgbtn_scan_event_handler(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    char* scan_msg = pvPortMalloc(128);
    memset(scan_msg, 0, 128);

    switch (code)
    {
        case LV_EVENT_CLICKED:
        {
            LOG_I("btn_scan CLICKED");
            lv_obj_clear_flag(guider_ui.src_home_cont_5, LV_OBJ_FLAG_HIDDEN);
            xTimerStart(loading_time, 100/portTICK_PERIOD_MS);
            sprintf(scan_msg, "{\"wifi_scan\":{\"status\":1}}");
            xQueueSend(queue, scan_msg, portMAX_DELAY);
        }
        break;
        default:
            break;
    }
    vPortFree(scan_msg);
}

void events_init_src_home(lv_ui* ui)
{
    lv_obj_add_event_cb(ui->src_home_imgbtn_openL, src_home_imgbtn_openL_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_imgbtn_confiL, src_home_imgbtn_confiL_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_imgbtn_closeL, src_home_imgbtn_closeL_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_imgbtn_user, src_home_imgbtn_user_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_imgbtn_10, src_home_imgbtn_10_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_btn_connect_mqtt, src_home_btn_connect_mqtt_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_btn_topicOK, src_home_btn_topicOK_event_handler, LV_EVENT_ALL, ui);

    lv_obj_add_event_cb(ui->src_home_imgbtn_stop, src_home_imgbtn_stop_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_imgbtn_satrt, src_home_imgbtn_satrt_event_handler, LV_EVENT_ALL, ui);

    lv_obj_add_event_cb(ui->src_home_imgbtn_voice, src_home_imgbtn_voice_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_imgbtn_novoice, src_home_imgbtn_novoice_event_handler, LV_EVENT_ALL, ui);

    lv_obj_add_event_cb(ui->src_home_img_wifi, src_home_img_wifi_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_btn_connect, src_home_btn_connect_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_img_loding, src_home_img_loding_event_handler, LV_EVENT_ALL, ui);

    //搜索
    lv_obj_add_event_cb(ui->src_home_btn_scan, src_home_imgbtn_scan_event_handler, LV_EVENT_ALL, ui);
    //快捷按键

    lv_obj_add_event_cb(ui->src_home_imgbtn_vol_I, src_home_imgbtn_vol_I_cb, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui->src_home_imgbtn_vol_n, src_home_imgbtn_vol_n_cb, LV_EVENT_ALL, ui);

    lv_obj_add_event_cb(ui->src_home_imgbtn_1, src_home_imgbtn_dashboard, LV_EVENT_ALL, (void*)HID_KEY_NUMBLE_A);
    lv_obj_add_event_cb(ui->src_home_imgbtn_2, src_home_imgbtn_dashboard, LV_EVENT_ALL, (void*)HID_KEY_NUMBLE_B);
    lv_obj_add_event_cb(ui->src_home_imgbtn_3, src_home_imgbtn_dashboard, LV_EVENT_ALL, (void*)HID_KEY_NUMBLE_C);
    lv_obj_add_event_cb(ui->src_home_imgbtn_4, src_home_imgbtn_dashboard, LV_EVENT_ALL, (void*)HID_KEY_NUMBLE_D);
    lv_obj_add_event_cb(ui->src_home_imgbtn_5, src_home_imgbtn_dashboard, LV_EVENT_ALL, (void*)HID_KEY_NUMBLE_F);
    lv_obj_add_event_cb(ui->src_home_imgbtn_6, src_home_imgbtn_dashboard, LV_EVENT_ALL, (void*)HID_KEY_NUMBLE_E);
    lv_obj_add_event_cb(ui->src_home_imgbtn_7, src_home_imgbtn_dashboard, LV_EVENT_ALL, (void*)HID_KEY_NUMBLE_MISIC_NEXT);
    lv_obj_add_event_cb(ui->src_home_imgbtn_8, src_home_imgbtn_dashboard, LV_EVENT_ALL, (void*)HID_KEY_NUMBLE_MISIC_PAST);

}

setup_scr_src_home.c

/*
 * Copyright 2023 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"

int src_home_digital_clock_1_hour_value = 11;
int src_home_digital_clock_1_min_value = 25;
int src_home_digital_clock_1_sec_value = 50;
int src_home_digital_date_yesr_value = 1970;
int src_home_digital_date_mont_value = 7;
int src_home_digital_date_day_value = 11;
int src_home_digital_date_wday_value = 2;
char* week_day[7] = { "日","一","二","三","四","五","六" };

void src_home_digital_clock_1_timer(lv_timer_t* timer)
{
    clock_count_24(&src_home_digital_clock_1_hour_value, &src_home_digital_clock_1_min_value, &src_home_digital_clock_1_sec_value);
    if (lv_obj_is_valid(guider_ui.src_home_digital_clock_1))
    {
        lv_dclock_set_text_fmt(guider_ui.src_home_digital_clock_1, "%02d:%02d:%02d", src_home_digital_clock_1_hour_value, src_home_digital_clock_1_min_value, src_home_digital_clock_1_sec_value);
        lv_label_set_text_fmt(guider_ui.src_home_label_date, "%04d年%02d月%02d日", src_home_digital_date_yesr_value, src_home_digital_date_mont_value, src_home_digital_date_day_value);
        lv_label_set_text_fmt(guider_ui.src_home_label_wday, "星期%s", week_day[src_home_digital_date_wday_value]);
    }
}


void setup_scr_src_home(lv_ui* ui) {

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

    //Create keyboard on src_home
    g_kb_src_home = lv_keyboard_create(ui->src_home);
    lv_obj_add_event_cb(g_kb_src_home, kb_src_home_event_cb, LV_EVENT_ALL, NULL);
    lv_obj_add_flag(g_kb_src_home, LV_OBJ_FLAG_HIDDEN);
    lv_obj_set_style_text_font(g_kb_src_home, &lv_font_simsun_18, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_scrollbar_mode(ui->src_home, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_bg_color(ui->src_home, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    ui->src_home_tabview_1 = lv_tabview_create(ui->src_home, LV_DIR_BOTTOM, 30);
    lv_obj_set_scrollbar_mode(ui->src_home_tabview_1, LV_SCROLLBAR_MODE_OFF);
    lv_obj_set_pos(ui->src_home_tabview_1, 0, 0);
    lv_obj_set_size(ui->src_home_tabview_1, 320, 240);

    //Home
    ui->src_home_tabview_1_Home = lv_tabview_add_tab(ui->src_home_tabview_1, "Home");
    //Shortcuts
    ui->src_home_tabview_1_Shortcuts = lv_tabview_add_tab(ui->src_home_tabview_1, "Shortcuts");
    //SmartCtrl
    ui->src_home_tabview_1_SmartCtrl = lv_tabview_add_tab(ui->src_home_tabview_1, "SmartCtrl");

    //Set style for src_home_tabview_1. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_tabview_1, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_tabview_1, lv_color_make(0xea, 0xef, 0xf3), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_tabview_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_tabview_1, lv_color_make(0x24, 0x24, 0x24), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_tabview_1, lv_color_make(0xc0, 0xc0, 0xc0), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_tabview_1, 100, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_tabview_1, lv_color_make(0x4d, 0x4d, 0x4d), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_tabview_1, &lv_font_simhei_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_tabview_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style state: LV_STATE_DEFAULT for style_src_home_tabview_1_extra_btnm_main_default
    static lv_style_t style_src_home_tabview_1_extra_btnm_main_default;
    ui_init_style(&style_src_home_tabview_1_extra_btnm_main_default);
    lv_style_set_radius(&style_src_home_tabview_1_extra_btnm_main_default, 0);
    lv_style_set_bg_color(&style_src_home_tabview_1_extra_btnm_main_default, lv_color_make(0x0f, 0x0f, 0x0f));
    lv_style_set_bg_grad_color(&style_src_home_tabview_1_extra_btnm_main_default, lv_color_make(0xff, 0xff, 0xff));
    lv_style_set_bg_grad_dir(&style_src_home_tabview_1_extra_btnm_main_default, LV_GRAD_DIR_NONE);
    lv_style_set_bg_opa(&style_src_home_tabview_1_extra_btnm_main_default, 0);
    lv_style_set_border_color(&style_src_home_tabview_1_extra_btnm_main_default, lv_color_make(0x11, 0x11, 0x11));
    lv_style_set_border_width(&style_src_home_tabview_1_extra_btnm_main_default, 0);
    lv_style_set_border_opa(&style_src_home_tabview_1_extra_btnm_main_default, 80);
    lv_obj_add_style(lv_tabview_get_tab_btns(ui->src_home_tabview_1), &style_src_home_tabview_1_extra_btnm_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style state: LV_STATE_DEFAULT for style_src_home_tabview_1_extra_btnm_items_default
    static lv_style_t style_src_home_tabview_1_extra_btnm_items_default;
    ui_init_style(&style_src_home_tabview_1_extra_btnm_items_default);
    lv_style_set_text_color(&style_src_home_tabview_1_extra_btnm_items_default, lv_color_make(0x4d, 0x4d, 0x4d));
    lv_style_set_text_font(&style_src_home_tabview_1_extra_btnm_items_default, &lv_font_simhei_12);
    lv_obj_add_style(lv_tabview_get_tab_btns(ui->src_home_tabview_1), &style_src_home_tabview_1_extra_btnm_items_default, LV_PART_ITEMS|LV_STATE_DEFAULT);

    //Set style state: LV_STATE_CHECKED for style_src_home_tabview_1_extra_btnm_items_checked
    static lv_style_t style_src_home_tabview_1_extra_btnm_items_checked;
    ui_init_style(&style_src_home_tabview_1_extra_btnm_items_checked);
    lv_style_set_radius(&style_src_home_tabview_1_extra_btnm_items_checked, 0);
    lv_style_set_bg_color(&style_src_home_tabview_1_extra_btnm_items_checked, lv_color_make(0x21, 0x95, 0xf6));
    lv_style_set_bg_grad_color(&style_src_home_tabview_1_extra_btnm_items_checked, lv_color_make(0x21, 0x95, 0xf6));
    lv_style_set_bg_grad_dir(&style_src_home_tabview_1_extra_btnm_items_checked, LV_GRAD_DIR_NONE);
    lv_style_set_bg_opa(&style_src_home_tabview_1_extra_btnm_items_checked, 60);
    lv_style_set_border_color(&style_src_home_tabview_1_extra_btnm_items_checked, lv_color_make(0x21, 0x95, 0xf6));
    lv_style_set_border_width(&style_src_home_tabview_1_extra_btnm_items_checked, 4);
    lv_style_set_border_opa(&style_src_home_tabview_1_extra_btnm_items_checked, 255);
    lv_style_set_border_side(&style_src_home_tabview_1_extra_btnm_items_checked, LV_BORDER_SIDE_BOTTOM);
    lv_style_set_text_color(&style_src_home_tabview_1_extra_btnm_items_checked, lv_color_make(0x21, 0x95, 0xf6));
    lv_style_set_text_font(&style_src_home_tabview_1_extra_btnm_items_checked, &lv_font_montserratMedium_12);
    lv_obj_add_style(lv_tabview_get_tab_btns(ui->src_home_tabview_1), &style_src_home_tabview_1_extra_btnm_items_checked, LV_PART_ITEMS|LV_STATE_CHECKED);

    //Write codes src_home_tileview
    ui->src_home_tileview = lv_tileview_create(ui->src_home_tabview_1_Home);
    lv_obj_set_pos(ui->src_home_tileview, 0, 0);
    lv_obj_set_size(ui->src_home_tileview, 290, 180);
    lv_obj_set_scrollbar_mode(ui->src_home_tileview, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_tileview. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_tileview, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_tileview, lv_color_make(0xf6, 0xf6, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_tileview, lv_color_make(0xf6, 0xf6, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_tileview, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_tileview, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_tileview, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_tileview, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_tileview, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_tileview, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_tileview, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_tileview, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_tileview. Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_tileview, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_tileview, lv_color_make(0xea, 0xef, 0xf3), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_tileview, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);

    //add new tile home
    ui->home = lv_tileview_add_tile(ui->src_home_tileview, 0, 0, LV_DIR_BOTTOM);
    {
        //Write codes src_home_img_1
        ui->src_home_img_1 = lv_img_create(ui->home);
        lv_obj_set_pos(ui->src_home_img_1, 0, 20);
        lv_obj_set_size(ui->src_home_img_1, 100, 100);
        lv_obj_set_scrollbar_mode(ui->src_home_img_1, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_img_1. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_img_recolor(ui->src_home_img_1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_recolor_opa(ui->src_home_img_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_opa(ui->src_home_img_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_add_flag(ui->src_home_img_1, LV_OBJ_FLAG_CLICKABLE);
        lv_img_set_src(ui->src_home_img_1, &_tianqiqing_alpha_100x100);
        lv_img_set_pivot(ui->src_home_img_1, 50, 50);
        lv_img_set_angle(ui->src_home_img_1, 0);

        //Write codes src_home_label_temp
        ui->src_home_label_temp = lv_label_create(ui->home);
        lv_obj_set_pos(ui->src_home_label_temp, 190, 96+28);
        lv_obj_set_size(ui->src_home_label_temp, 100, 44);
        lv_obj_set_scrollbar_mode(ui->src_home_label_temp, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_temp, "25℃");
        lv_label_set_long_mode(ui->src_home_label_temp, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_temp. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_temp, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_temp, &lv_font_simhei_40, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        static bool src_home_digital_clock_1_timer_enabled = false;

        //Write codes src_home_digital_clock_1
        ui->src_home_digital_clock_1 = lv_dclock_create(ui->home, "11:25:50");
        lv_obj_set_style_text_align(ui->src_home_digital_clock_1, LV_TEXT_ALIGN_CENTER, 0);
        lv_obj_set_pos(ui->src_home_digital_clock_1, 120, 42);
        lv_obj_set_size(ui->src_home_digital_clock_1, 143, 48);

        //create timer
        if (!src_home_digital_clock_1_timer_enabled) {
            lv_timer_create(src_home_digital_clock_1_timer, 1000, NULL);
            src_home_digital_clock_1_timer_enabled = true;
        }
        //Set style for src_home_digital_clock_1. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_digital_clock_1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_digital_clock_1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_digital_clock_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_digital_clock_1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_digital_clock_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_digital_clock_1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_digital_clock_1, &lv_font_montserratMedium_30, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_img_wifi
        ui->src_home_img_wifi = lv_img_create(ui->home);
        lv_obj_set_pos(ui->src_home_img_wifi, 140, 0);
        lv_obj_set_size(ui->src_home_img_wifi, 20, 20);
        lv_obj_set_scrollbar_mode(ui->src_home_img_wifi, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_img_wifi. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_img_recolor(ui->src_home_img_wifi, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_recolor_opa(ui->src_home_img_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_opa(ui->src_home_img_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_add_flag(ui->src_home_img_wifi, LV_OBJ_FLAG_CLICKABLE);
        lv_img_set_src(ui->src_home_img_wifi, &_no_internet_alpha_20x20);
        lv_img_set_pivot(ui->src_home_img_wifi, 0, 0);
        lv_img_set_angle(ui->src_home_img_wifi, 0);

        //Write codes src_home_label_dizhi
        ui->src_home_label_dizhi = lv_label_create(ui->home);
        lv_obj_set_pos(ui->src_home_label_dizhi, 100, 100+28);
        lv_obj_set_size(ui->src_home_label_dizhi, 100, 16);
        lv_obj_set_scrollbar_mode(ui->src_home_label_dizhi, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_dizhi, "自己的城市");
        lv_label_set_long_mode(ui->src_home_label_dizhi, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_dizhi. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_dizhi, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_dizhi, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_dizhi, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_dizhi, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_dizhi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_dizhi, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_dizhi, &lv_font_simhei_16, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_dizhi, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_dizhi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_label_waether
        ui->src_home_label_waether = lv_label_create(ui->home);
        lv_obj_set_pos(ui->src_home_label_waether, 95, 120+28);
        lv_obj_set_size(ui->src_home_label_waether, 120, 14);
        lv_obj_set_scrollbar_mode(ui->src_home_label_waether, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_waether, "雷阵雨转多云");
        lv_label_set_long_mode(ui->src_home_label_waether, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_waether. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_waether, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_waether, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_waether, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_waether, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_waether, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_waether, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_waether, &lv_font_simhei_14, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_waether, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_waether, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_cont_1
        ui->src_home_cont_1 = lv_obj_create(ui->home);
        lv_obj_set_pos(ui->src_home_cont_1, -23, 120);
        lv_obj_set_size(ui->src_home_cont_1, 140, 50);
        lv_obj_set_scrollbar_mode(ui->src_home_cont_1, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_cont_1. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_cont_1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_cont_1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_cont_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_cont_1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_color(ui->src_home_cont_1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_width(ui->src_home_cont_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_opa(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_img_day1
        ui->src_home_img_day1 = lv_img_create(ui->src_home_cont_1);
        lv_obj_set_pos(ui->src_home_img_day1, 23, 15);
        lv_obj_set_size(ui->src_home_img_day1, 20, 20);
        lv_obj_set_scrollbar_mode(ui->src_home_img_day1, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_img_day1. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_img_recolor(ui->src_home_img_day1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_recolor_opa(ui->src_home_img_day1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_opa(ui->src_home_img_day1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_add_flag(ui->src_home_img_day1, LV_OBJ_FLAG_CLICKABLE);
        lv_img_set_src(ui->src_home_img_day1, &_tianqiqing_i_alpha_20x20);
        lv_img_set_pivot(ui->src_home_img_day1, 0, 0);
        lv_img_set_angle(ui->src_home_img_day1, 0);

        //Write codes src_home_label_day2
        ui->src_home_label_day2 = lv_label_create(ui->src_home_cont_1);
        lv_obj_set_pos(ui->src_home_label_day2, 53, 4);
        lv_obj_set_size(ui->src_home_label_day2, 33, 9);
        lv_obj_set_scrollbar_mode(ui->src_home_label_day2, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_day2, "后天");
        lv_label_set_long_mode(ui->src_home_label_day2, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_day2. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_day2, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_day2, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_day2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_day2, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_day2, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_day2, &lv_font_simhei_10, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_day2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_day2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_label_day3
        ui->src_home_label_day3 = lv_label_create(ui->src_home_cont_1);
        lv_obj_set_pos(ui->src_home_label_day3, 93, 3);
        lv_obj_set_size(ui->src_home_label_day3, 33, 12);
        lv_obj_set_scrollbar_mode(ui->src_home_label_day3, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_day3, "大后天");
        lv_label_set_long_mode(ui->src_home_label_day3, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_day3. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_day3, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_day3, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_day3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_day3, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_day3, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_day3, &lv_font_simhei_10, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_day3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_day3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_label_day1
        ui->src_home_label_day1 = lv_label_create(ui->src_home_cont_1);
        lv_obj_set_pos(ui->src_home_label_day1, 18, 3);
        lv_obj_set_size(ui->src_home_label_day1, 33, 12);
        lv_obj_set_scrollbar_mode(ui->src_home_label_day1, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_day1, "明天");
        lv_label_set_long_mode(ui->src_home_label_day1, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_day1. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_day1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_day1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_day1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_day1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_day1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_day1, &lv_font_simhei_10, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_day1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_day1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_img_day2
        ui->src_home_img_day2 = lv_img_create(ui->src_home_cont_1);
        lv_obj_set_pos(ui->src_home_img_day2, 61, 15);
        lv_obj_set_size(ui->src_home_img_day2, 20, 20);
        lv_obj_set_scrollbar_mode(ui->src_home_img_day2, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_img_day2. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_img_recolor(ui->src_home_img_day2, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_recolor_opa(ui->src_home_img_day2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_opa(ui->src_home_img_day2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_add_flag(ui->src_home_img_day2, LV_OBJ_FLAG_CLICKABLE);
        lv_img_set_src(ui->src_home_img_day2, &_tianqiqing_i_alpha_20x20);
        lv_img_set_pivot(ui->src_home_img_day2, 0, 0);
        lv_img_set_angle(ui->src_home_img_day2, 0);

        //Write codes src_home_img_day3
        ui->src_home_img_day3 = lv_img_create(ui->src_home_cont_1);
        lv_obj_set_pos(ui->src_home_img_day3, 99, 15);
        lv_obj_set_size(ui->src_home_img_day3, 20, 20);
        lv_obj_set_scrollbar_mode(ui->src_home_img_day3, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_img_day3. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_img_recolor(ui->src_home_img_day3, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_recolor_opa(ui->src_home_img_day3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_img_opa(ui->src_home_img_day3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_add_flag(ui->src_home_img_day3, LV_OBJ_FLAG_CLICKABLE);
        lv_img_set_src(ui->src_home_img_day3, &_tianqiqing_i_alpha_20x20);
        lv_img_set_pivot(ui->src_home_img_day3, 0, 0);
        lv_img_set_angle(ui->src_home_img_day3, 0);

        //Write codes src_home_day1_temp
        ui->src_home_day1_temp = lv_label_create(ui->src_home_cont_1);
        lv_obj_set_pos(ui->src_home_day1_temp, 27, 37);
        lv_obj_set_size(ui->src_home_day1_temp, 20, 12);
        lv_obj_set_scrollbar_mode(ui->src_home_day1_temp, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_day1_temp, "25°");
        lv_label_set_long_mode(ui->src_home_day1_temp, LV_LABEL_LONG_WRAP);

        //Set style for src_home_day1_temp. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_day1_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_day1_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_day1_temp, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_day1_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_day1_temp, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_day1_temp, &lv_font_simhei_10, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_day1_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_day1_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_day2_temp
        ui->src_home_day2_temp = lv_label_create(ui->src_home_cont_1);
        lv_obj_set_pos(ui->src_home_day2_temp, 66, 37);
        lv_obj_set_size(ui->src_home_day2_temp, 20, 12);
        lv_obj_set_scrollbar_mode(ui->src_home_day2_temp, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_day2_temp, "25°");
        lv_label_set_long_mode(ui->src_home_day2_temp, LV_LABEL_LONG_WRAP);

        //Set style for src_home_day2_temp. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_day2_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_day2_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_day2_temp, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_day2_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_day2_temp, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_day2_temp, &lv_font_simhei_10, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_day2_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_day2_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_day3_temp
        ui->src_home_day3_temp = lv_label_create(ui->src_home_cont_1);
        lv_obj_set_pos(ui->src_home_day3_temp, 104, 37);
        lv_obj_set_size(ui->src_home_day3_temp, 20, 12);
        lv_obj_set_scrollbar_mode(ui->src_home_day3_temp, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_day3_temp, "25°");
        lv_label_set_long_mode(ui->src_home_day3_temp, LV_LABEL_LONG_WRAP);

        //Set style for src_home_day3_temp. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_day3_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_day3_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_day3_temp, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_day3_temp, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_day3_temp, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_day3_temp, &lv_font_simhei_10, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_day3_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_day3_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_cont_2
        ui->src_home_cont_2 = lv_obj_create(ui->home);
        lv_obj_set_pos(ui->src_home_cont_2, 10+80, 76);
        lv_obj_set_size(ui->src_home_cont_2, 196, 31);
        lv_obj_set_scrollbar_mode(ui->src_home_cont_2, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_cont_2. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_cont_2, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_cont_2, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_cont_2, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_cont_2, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_color(ui->src_home_cont_2, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_width(ui->src_home_cont_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_opa(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_cont_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_label_wday
        ui->src_home_label_wday = lv_label_create(ui->src_home_cont_2);
        lv_obj_set_pos(ui->src_home_label_wday, 126, 5);
        lv_obj_set_size(ui->src_home_label_wday, 46, 16);
        lv_obj_set_scrollbar_mode(ui->src_home_label_wday, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_wday, "星期一");
        lv_label_set_long_mode(ui->src_home_label_wday, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_wday. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_wday, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_wday, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_wday, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_wday, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_wday, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_wday, &lv_font_simhei_12, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_wday, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_wday, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_label_date
        ui->src_home_label_date = lv_label_create(ui->src_home_cont_2);
        lv_obj_set_pos(ui->src_home_label_date, 26, 5);
        lv_obj_set_size(ui->src_home_label_date, 87, 10);
        lv_obj_set_scrollbar_mode(ui->src_home_label_date, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_date, "1970年7月10日");
        lv_label_set_long_mode(ui->src_home_label_date, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_date. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_date, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_date, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_date, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_date, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_date, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_date, &lv_font_simhei_12, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_date, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    }
    //add new tile config
    ui->config = lv_tileview_add_tile(ui->src_home_tileview, 0, 1, LV_DIR_TOP);
    {
        //Write codes src_home_ta_1
        ui->src_home_ta_1 = lv_textarea_create(ui->config);
        lv_obj_set_pos(ui->src_home_ta_1, 42+32, 100-25);
        lv_obj_set_size(ui->src_home_ta_1, 130+20, 30);
        lv_obj_set_scrollbar_mode(ui->src_home_ta_1, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_ta_1. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_ta_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_ta_1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_ta_1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_ta_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_ta_1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_color(ui->src_home_ta_1, lv_color_make(0x58, 0x58, 0x58), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_width(ui->src_home_ta_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_opa(ui->src_home_ta_1, 249, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_ta_1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_ta_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_ta_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_ta_1, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_ta_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Set style for src_home_ta_1. Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_ta_1, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_ta_1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_ta_1, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
        // lv_textarea_set_text(ui->src_home_ta_1, "ASD");

        //use keyboard on src_home_ta_1
        lv_obj_add_event_cb(ui->src_home_ta_1, ta_src_home_event_cb, LV_EVENT_ALL, g_kb_src_home);

        //Write codes src_home_label_ip
        ui->src_home_label_ip = lv_label_create(ui->config);
        lv_obj_set_pos(ui->src_home_label_ip, 80, 0);
        lv_obj_set_size(ui->src_home_label_ip, 127, 12);
        lv_obj_set_scrollbar_mode(ui->src_home_label_ip, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_ip, "IP:00.00.00.00");
        lv_label_set_long_mode(ui->src_home_label_ip, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_ip. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_ip, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_ip, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_ip, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_ip, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_ip, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_ip, lv_color_make(0xf9, 0xf9, 0xf9), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_ip, &lv_font_arial_12, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_ip, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_ip, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_ddlist_1
        ui->src_home_ddlist_1 = lv_dropdown_create(ui->config);
        lv_obj_set_pos(ui->src_home_ddlist_1, 42+32, 47-20);
        lv_obj_set_size(ui->src_home_ddlist_1, 130+20, 30);
        lv_obj_set_scrollbar_mode(ui->src_home_ddlist_1, LV_SCROLLBAR_MODE_OFF);
        lv_dropdown_set_options(ui->src_home_ddlist_1, "FAE@Seahi\nAIOT@FAE\nzhibo_01");

        //Set style for src_home_ddlist_1. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_ddlist_1, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_ddlist_1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_ddlist_1, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_ddlist_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_ddlist_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_ddlist_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_ddlist_1, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_ddlist_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_ddlist_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_ddlist_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_ddlist_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_color(ui->src_home_ddlist_1, lv_color_make(0x68, 0x68, 0x68), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_width(ui->src_home_ddlist_1, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_opa(ui->src_home_ddlist_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_ddlist_1, lv_color_make(0xfd, 0xfd, 0xfd), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_ddlist_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_ddlist_1, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_ddlist_1, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_ddlist_1, 8, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Set style state: LV_STATE_CHECKED for style_src_home_ddlist_1_extra_list_selected_checked
        static lv_style_t style_src_home_ddlist_1_extra_list_selected_checked;
        ui_init_style(&style_src_home_ddlist_1_extra_list_selected_checked);
        lv_style_set_radius(&style_src_home_ddlist_1_extra_list_selected_checked, 3);
        lv_style_set_bg_color(&style_src_home_ddlist_1_extra_list_selected_checked, lv_color_make(0x50, 0x50, 0x50));
        lv_style_set_bg_grad_color(&style_src_home_ddlist_1_extra_list_selected_checked, lv_color_make(0x00, 0xa1, 0xb5));
        lv_style_set_bg_grad_dir(&style_src_home_ddlist_1_extra_list_selected_checked, LV_GRAD_DIR_NONE);
        lv_style_set_bg_opa(&style_src_home_ddlist_1_extra_list_selected_checked, 173);
        lv_style_set_border_color(&style_src_home_ddlist_1_extra_list_selected_checked, lv_color_make(0xe1, 0xe6, 0xee));
        lv_style_set_border_width(&style_src_home_ddlist_1_extra_list_selected_checked, 1);
        lv_style_set_border_opa(&style_src_home_ddlist_1_extra_list_selected_checked, 0);
        lv_style_set_text_color(&style_src_home_ddlist_1_extra_list_selected_checked, lv_color_make(0xff, 0xff, 0xff));
        lv_style_set_text_font(&style_src_home_ddlist_1_extra_list_selected_checked, &lv_font_montserratMedium_12);
        lv_obj_add_style(lv_dropdown_get_list(ui->src_home_ddlist_1), &style_src_home_ddlist_1_extra_list_selected_checked, LV_PART_SELECTED|LV_STATE_CHECKED);

        //Set style state: LV_STATE_DEFAULT for style_src_home_ddlist_1_extra_list_main_default
        static lv_style_t style_src_home_ddlist_1_extra_list_main_default;
        ui_init_style(&style_src_home_ddlist_1_extra_list_main_default);
        lv_style_set_radius(&style_src_home_ddlist_1_extra_list_main_default, 3);
        lv_style_set_bg_color(&style_src_home_ddlist_1_extra_list_main_default, lv_color_make(0xff, 0xff, 0xff));
        lv_style_set_bg_grad_color(&style_src_home_ddlist_1_extra_list_main_default, lv_color_make(0xff, 0xff, 0xff));
        lv_style_set_bg_grad_dir(&style_src_home_ddlist_1_extra_list_main_default, LV_GRAD_DIR_NONE);
        lv_style_set_bg_opa(&style_src_home_ddlist_1_extra_list_main_default, 82);
        lv_style_set_border_color(&style_src_home_ddlist_1_extra_list_main_default, lv_color_make(0x00, 0x00, 0x00));
        lv_style_set_border_width(&style_src_home_ddlist_1_extra_list_main_default, 1);
        lv_style_set_border_opa(&style_src_home_ddlist_1_extra_list_main_default, 0);
        lv_style_set_text_color(&style_src_home_ddlist_1_extra_list_main_default, lv_color_make(0xbb, 0xbb, 0xbb));
        lv_style_set_text_font(&style_src_home_ddlist_1_extra_list_main_default, &lv_font_montserratMedium_12);
        lv_style_set_max_height(&style_src_home_ddlist_1_extra_list_main_default, 150);
        lv_obj_add_style(lv_dropdown_get_list(ui->src_home_ddlist_1), &style_src_home_ddlist_1_extra_list_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Set style state: LV_STATE_DEFAULT for style_src_home_ddlist_1_extra_list_scrollbar_default
        static lv_style_t style_src_home_ddlist_1_extra_list_scrollbar_default;
        ui_init_style(&style_src_home_ddlist_1_extra_list_scrollbar_default);
        lv_style_set_radius(&style_src_home_ddlist_1_extra_list_scrollbar_default, 3);
        lv_style_set_bg_color(&style_src_home_ddlist_1_extra_list_scrollbar_default, lv_color_make(0xb0, 0xb0, 0xb0));
        lv_style_set_bg_opa(&style_src_home_ddlist_1_extra_list_scrollbar_default, 221);
        lv_obj_add_style(lv_dropdown_get_list(ui->src_home_ddlist_1), &style_src_home_ddlist_1_extra_list_scrollbar_default, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);

        //Write codes src_home_label_ssid
        ui->src_home_label_ssid = lv_label_create(ui->config);
        lv_obj_set_pos(ui->src_home_label_ssid, 30, 55-20);
        lv_obj_set_size(ui->src_home_label_ssid, 48, 15);
        lv_obj_set_scrollbar_mode(ui->src_home_label_ssid, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_ssid, "SSID:");
        lv_label_set_long_mode(ui->src_home_label_ssid, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_ssid. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_ssid, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_ssid, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_ssid, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_ssid, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_ssid, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_ssid, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_ssid, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_ssid, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        //Write codes src_home_btn_scan
        ui->src_home_btn_scan = lv_btn_create(ui->config);
        lv_obj_set_pos(ui->src_home_btn_scan, 179+50, 28);
        lv_obj_set_size(ui->src_home_btn_scan, 50, 30);
        lv_obj_set_scrollbar_mode(ui->src_home_btn_scan, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_btn_scan. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_btn_scan, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_btn_scan, lv_color_make(0x08, 0x24, 0x39), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_btn_scan, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_btn_scan, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_btn_scan, 220, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_btn_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_btn_scan, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_btn_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_btn_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_btn_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_btn_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_color(ui->src_home_btn_scan, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_width(ui->src_home_btn_scan, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_opa(ui->src_home_btn_scan, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_btn_scan, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_btn_scan, &lv_font_simhei_14, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_btn_scan, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        ui->src_home_btn_scan_label = lv_label_create(ui->src_home_btn_scan);
        lv_label_set_text(ui->src_home_btn_scan_label, "搜索");
        lv_obj_set_style_pad_all(ui->src_home_btn_scan, 0, LV_STATE_DEFAULT);
        lv_obj_align(ui->src_home_btn_scan_label, LV_ALIGN_CENTER, 0, 0);

        //Write codes src_home_label_pass
        ui->src_home_label_pass = lv_label_create(ui->config);
        lv_obj_set_pos(ui->src_home_label_pass, 30, 108-25);
        lv_obj_set_size(ui->src_home_label_pass, 45, 14);
        lv_obj_set_scrollbar_mode(ui->src_home_label_pass, LV_SCROLLBAR_MODE_OFF);
        lv_label_set_text(ui->src_home_label_pass, "PASS:");
        lv_label_set_long_mode(ui->src_home_label_pass, LV_LABEL_LONG_WRAP);

        //Set style for src_home_label_pass. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_label_pass, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_label_pass, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_label_pass, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_label_pass, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_label_pass, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_label_pass, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_label_pass, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(ui->src_home_label_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

        //Write codes src_home_btn_connect
        ui->src_home_btn_connect = lv_btn_create(ui->config);
        lv_obj_set_pos(ui->src_home_btn_connect, 59+40, 155-20);
        lv_obj_set_size(ui->src_home_btn_connect, 87, 39);
        lv_obj_set_scrollbar_mode(ui->src_home_btn_connect, LV_SCROLLBAR_MODE_OFF);

        //Set style for src_home_btn_connect. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
        lv_obj_set_style_radius(ui->src_home_btn_connect, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_color(ui->src_home_btn_connect, lv_color_make(0x08, 0x24, 0x39), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_color(ui->src_home_btn_connect, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(ui->src_home_btn_connect, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(ui->src_home_btn_connect, 220, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(ui->src_home_btn_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_color(ui->src_home_btn_connect, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_opa(ui->src_home_btn_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_spread(ui->src_home_btn_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_x(ui->src_home_btn_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_ofs_y(ui->src_home_btn_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_color(ui->src_home_btn_connect, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_width(ui->src_home_btn_connect, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_border_opa(ui->src_home_btn_connect, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(ui->src_home_btn_connect, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_font(ui->src_home_btn_connect, &lv_font_simhei_16, LV_PART_MAIN|LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(ui->src_home_btn_connect, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
        ui->src_home_btn_connect_label = lv_label_create(ui->src_home_btn_connect);
        lv_label_set_text(ui->src_home_btn_connect_label, "连接");
        lv_obj_set_style_pad_all(ui->src_home_btn_connect, 0, LV_STATE_DEFAULT);
        lv_obj_align(ui->src_home_btn_connect_label, LV_ALIGN_CENTER, 0, 0);

    }
    //Write codes src_home_imgbtn_openL
    shortcuts_scr_set(ui);
    SmartCtrl_scr_set(ui);
    //Write codes src_home_cont_5
    ui->src_home_cont_5 = lv_obj_create(ui->src_home);
    lv_obj_set_pos(ui->src_home_cont_5, 0, 0);
    lv_obj_set_size(ui->src_home_cont_5, 320, 240);
    lv_obj_set_scrollbar_mode(ui->src_home_cont_5, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_cont_5. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_cont_5, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_cont_5, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_cont_5, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_cont_5, 125, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_cont_5, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_cont_5, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_cont_5, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_cont_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Hidden for widget src_home_cont_5
    lv_obj_add_flag(ui->src_home_cont_5, LV_OBJ_FLAG_HIDDEN);
    //Write codes src_home_img_loding
    ui->src_home_img_loding = lv_img_create(ui->src_home_cont_5);
    lv_obj_set_pos(ui->src_home_img_loding, 100, 60);
    lv_obj_set_size(ui->src_home_img_loding, 100, 100);
    lv_obj_set_scrollbar_mode(ui->src_home_img_loding, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_img_loding. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_img_recolor(ui->src_home_img_loding, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor_opa(ui->src_home_img_loding, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->src_home_img_loding, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_add_flag(ui->src_home_img_loding, LV_OBJ_FLAG_CLICKABLE);
    lv_img_set_src(ui->src_home_img_loding, &_loding_alpha_100x100);
    lv_img_set_pivot(ui->src_home_img_loding, 50, 50);
    lv_img_set_angle(ui->src_home_img_loding, 0);

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

setup_smarctrl.c

/**
 * @file setup_smarctrl.c
 * @author your name ([email]you@domain.com[/email])
 * @brief
 * @version 0.1
 * @date 2023-07-13
 *
 * @copyright Copyright (c) 2023
 *
*/

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

lv_obj_t* g_kb_src_home;
void kb_src_home_event_cb(lv_event_t* e)
{
    lv_event_code_t code = lv_event_get_code(e);
    lv_obj_t* kb = lv_event_get_target(e);
    if (code == LV_EVENT_READY || code == LV_EVENT_CANCEL) {
        lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN);
    }
}
/**
 * @brief
 *
*/
__attribute__((unused))  void ta_src_home_event_cb(lv_event_t* e)
{

    lv_event_code_t code = lv_event_get_code(e);
    lv_obj_t* ta = lv_event_get_target(e);
    lv_obj_t* kb = lv_event_get_user_data(e);
    if (code == LV_EVENT_FOCUSED || code == LV_EVENT_CLICKED)
    {
        lv_keyboard_set_textarea(kb, ta);
        lv_obj_move_foreground(kb);
        lv_obj_clear_flag(kb, LV_OBJ_FLAG_HIDDEN);
    }
    if (code == LV_EVENT_CANCEL || code == LV_EVENT_DEFOCUSED)
    {
        lv_keyboard_set_textarea(kb, NULL);
        lv_obj_move_background(kb);
        lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN);
    }
}
/**
 * @brief
 *
 * @param ui
*/
void SmartCtrl_scr_set(lv_ui* ui)
{
    ui->src_home_imgbtn_openL = lv_imgbtn_create(ui->src_home_tabview_1_SmartCtrl);
    lv_obj_set_pos(ui->src_home_imgbtn_openL, 74, 103-50);
    lv_obj_set_size(ui->src_home_imgbtn_openL, 80, 110);
    lv_obj_set_scrollbar_mode(ui->src_home_imgbtn_openL, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_imgbtn_openL. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_openL, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_openL, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_openL, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_imgbtn_openL, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_openL, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_openL, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_imgbtn_openL. Part: LV_PART_MAIN, State: LV_STATE_PRESSED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_openL, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_openL, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_openL, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_openL, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_openL, 255, LV_PART_MAIN|LV_STATE_PRESSED);

    //Set style for src_home_imgbtn_openL. Part: LV_PART_MAIN, State: LV_STATE_CHECKED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_openL, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_openL, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_openL, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_openL, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_openL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_openL, 255, LV_PART_MAIN|LV_STATE_CHECKED);

    //Hidden for widget src_home_imgbtn_openL
    lv_obj_add_flag(ui->src_home_imgbtn_openL, LV_OBJ_FLAG_HIDDEN);

    lv_imgbtn_set_src(ui->src_home_imgbtn_openL, LV_IMGBTN_STATE_RELEASED, NULL, &_diaodengopen_alpha_80x110, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_openL, LV_IMGBTN_STATE_PRESSED, NULL, &_diaodengopen_s_alpha_80x110, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_openL, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_diaodengopen_alpha_80x110, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_openL, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_diaodengopen_s_alpha_80x110, NULL);
    lv_obj_add_flag(ui->src_home_imgbtn_openL, LV_OBJ_FLAG_CHECKABLE);

    //Write codes src_home_imgbtn_confiL
    ui->src_home_imgbtn_confiL = lv_imgbtn_create(ui->src_home_tabview_1_SmartCtrl);
    lv_obj_set_pos(ui->src_home_imgbtn_confiL, 185+60, 34);
    lv_obj_set_size(ui->src_home_imgbtn_confiL, 25, 25);
    lv_obj_set_scrollbar_mode(ui->src_home_imgbtn_confiL, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_imgbtn_confiL. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_confiL, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_confiL, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_confiL, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_imgbtn_confiL, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_confiL, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_confiL, 163, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_imgbtn_confiL. Part: LV_PART_MAIN, State: LV_STATE_PRESSED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_confiL, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_confiL, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_confiL, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_confiL, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_confiL, 255, LV_PART_MAIN|LV_STATE_PRESSED);

    //Set style for src_home_imgbtn_confiL. Part: LV_PART_MAIN, State: LV_STATE_CHECKED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_confiL, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_confiL, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_confiL, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_confiL, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_confiL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_confiL, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_imgbtn_set_src(ui->src_home_imgbtn_confiL, LV_IMGBTN_STATE_RELEASED, NULL, &_configL_alpha_25x25, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_confiL, LV_IMGBTN_STATE_PRESSED, NULL, &_configset_alpha_25x25, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_confiL, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_configL_alpha_25x25, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_confiL, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_configset_alpha_25x25, NULL);
    lv_obj_add_flag(ui->src_home_imgbtn_confiL, LV_OBJ_FLAG_CHECKABLE);

    //Write codes src_home_label_18
    ui->src_home_label_18 = lv_label_create(ui->src_home_tabview_1_SmartCtrl);
    lv_obj_set_pos(ui->src_home_label_18, 178+60, 54);
    lv_obj_set_size(ui->src_home_label_18, 27, 22);
    lv_obj_set_scrollbar_mode(ui->src_home_label_18, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_18, "点击编辑");
    lv_label_set_long_mode(ui->src_home_label_18, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_18. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_18, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_18, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_18, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_18, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_18, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_18, &lv_font_simhei_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_18, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_imgbtn_closeL
    ui->src_home_imgbtn_closeL = lv_imgbtn_create(ui->src_home_tabview_1_SmartCtrl);
    lv_obj_set_pos(ui->src_home_imgbtn_closeL, 74, 103-50);
    lv_obj_set_size(ui->src_home_imgbtn_closeL, 80, 110);
    lv_obj_set_scrollbar_mode(ui->src_home_imgbtn_closeL, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_imgbtn_closeL. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_closeL, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_closeL, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_closeL, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_imgbtn_closeL, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_closeL, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_closeL, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_imgbtn_closeL. Part: LV_PART_MAIN, State: LV_STATE_PRESSED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_closeL, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_closeL, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_closeL, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_closeL, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_closeL, 255, LV_PART_MAIN|LV_STATE_PRESSED);

    //Set style for src_home_imgbtn_closeL. Part: LV_PART_MAIN, State: LV_STATE_CHECKED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_closeL, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_closeL, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_closeL, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_closeL, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_closeL, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_closeL, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_imgbtn_set_src(ui->src_home_imgbtn_closeL, LV_IMGBTN_STATE_RELEASED, NULL, &_diaodeng_alpha_80x110, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_closeL, LV_IMGBTN_STATE_PRESSED, NULL, &_diaodeng_s_alpha_80x110, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_closeL, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_diaodeng_alpha_80x110, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_closeL, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_diaodeng_s_alpha_80x110, NULL);
    lv_obj_add_flag(ui->src_home_imgbtn_closeL, LV_OBJ_FLAG_CHECKABLE);

    //Write codes src_home_label_14
    ui->src_home_label_14 = lv_label_create(ui->src_home_tabview_1_SmartCtrl);
    lv_obj_set_pos(ui->src_home_label_14, 25+30, 10);
    lv_obj_set_size(ui->src_home_label_14, 156, 14);
    lv_obj_set_scrollbar_mode(ui->src_home_label_14, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_14, "mqtt diconnect");
    lv_label_set_long_mode(ui->src_home_label_14, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_14. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_14, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_14, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_14, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_14, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_14, lv_color_make(0xff, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_14, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_14, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_imgbtn_user
    ui->src_home_imgbtn_user = lv_imgbtn_create(ui->src_home_tabview_1_SmartCtrl);
    lv_obj_set_pos(ui->src_home_imgbtn_user, 191+60, 6);
    lv_obj_set_size(ui->src_home_imgbtn_user, 20, 20);
    lv_obj_set_scrollbar_mode(ui->src_home_imgbtn_user, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_imgbtn_user. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_user, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_user, 13, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_user, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_imgbtn_user, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_user, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_user, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_imgbtn_user. Part: LV_PART_MAIN, State: LV_STATE_PRESSED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_user, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_user, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_user, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_user, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_user, 255, LV_PART_MAIN|LV_STATE_PRESSED);

    //Set style for src_home_imgbtn_user. Part: LV_PART_MAIN, State: LV_STATE_CHECKED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_user, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_user, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_user, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_user, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_user, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_user, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_imgbtn_set_src(ui->src_home_imgbtn_user, LV_IMGBTN_STATE_RELEASED, NULL, &_useropen_alpha_20x20, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_user, LV_IMGBTN_STATE_PRESSED, NULL, &_userclose_alpha_20x20, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_user, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_useropen_alpha_20x20, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_user, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_userclose_alpha_20x20, NULL);
    lv_obj_add_flag(ui->src_home_imgbtn_user, LV_OBJ_FLAG_CHECKABLE);

    //Write codes src_home_cont_3
    ui->src_home_cont_3 = lv_obj_create(ui->src_home_tabview_1_SmartCtrl);
    lv_obj_set_pos(ui->src_home_cont_3, 8, 5);
    lv_obj_set_size(ui->src_home_cont_3, 205+60, 175);
    lv_obj_set_scrollbar_mode(ui->src_home_cont_3, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_cont_3. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_cont_3, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_cont_3, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_cont_3, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_cont_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_cont_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_cont_3, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_cont_3, lv_color_make(0x47, 0x47, 0x47), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_cont_3, 1, LV_PART_MAIN|LV_STATE_DEFAULT);

    lv_obj_set_style_border_opa(ui->src_home_cont_3, 87, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_cont_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Hidden for widget src_home_cont_3
    lv_obj_add_flag(ui->src_home_cont_3, LV_OBJ_FLAG_HIDDEN);


    //Write codes src_home_cont_4
    ui->src_home_cont_4 = lv_obj_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_cont_4, 0, 0);
    lv_obj_set_size(ui->src_home_cont_4, 205+60, 24);
    lv_obj_set_scrollbar_mode(ui->src_home_cont_4, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_cont_4. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_cont_4, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_cont_4, lv_color_make(0x66, 0x66, 0x66), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_cont_4, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_cont_4, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_cont_4, 44, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_cont_4, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_cont_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_cont_4, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_cont_4, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_cont_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_imgbtn_10
    ui->src_home_imgbtn_10 = lv_imgbtn_create(ui->src_home_cont_4);
    lv_obj_set_pos(ui->src_home_imgbtn_10, 172+56, 0);
    lv_obj_set_size(ui->src_home_imgbtn_10, 20, 20);
    lv_obj_set_scrollbar_mode(ui->src_home_imgbtn_10, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_imgbtn_10. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_10, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_10, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_imgbtn_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_10, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_imgbtn_10. Part: LV_PART_MAIN, State: LV_STATE_PRESSED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_10, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_10, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_10, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_10, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_10, 255, LV_PART_MAIN|LV_STATE_PRESSED);

    //Set style for src_home_imgbtn_10. Part: LV_PART_MAIN, State: LV_STATE_CHECKED
    lv_obj_set_style_shadow_width(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_color(ui->src_home_imgbtn_10, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_opa(ui->src_home_imgbtn_10, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_spread(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->src_home_imgbtn_10, lv_color_make(0xFF, 0x33, 0xFF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor(ui->src_home_imgbtn_10, lv_color_make(0x00, 0x00, 0x00), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_recolor_opa(ui->src_home_imgbtn_10, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->src_home_imgbtn_10, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_imgbtn_set_src(ui->src_home_imgbtn_10, LV_IMGBTN_STATE_RELEASED, NULL, &_closeopen_alpha_20x20, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_10, LV_IMGBTN_STATE_PRESSED, NULL, &_closeopen1_alpha_20x20, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_10, LV_IMGBTN_STATE_CHECKED_RELEASED, NULL, &_closeopen_alpha_20x20, NULL);
    lv_imgbtn_set_src(ui->src_home_imgbtn_10, LV_IMGBTN_STATE_CHECKED_PRESSED, NULL, &_closeopen1_alpha_20x20, NULL);
    lv_obj_add_flag(ui->src_home_imgbtn_10, LV_OBJ_FLAG_CHECKABLE);

    //Write codes src_home_label_13
    ui->src_home_label_13 = lv_label_create(ui->src_home_cont_4);
    lv_obj_set_pos(ui->src_home_label_13, 3, 3);
    lv_obj_set_size(ui->src_home_label_13, 43, 11);
    lv_obj_set_scrollbar_mode(ui->src_home_label_13, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_13, "MQTT");
    lv_label_set_long_mode(ui->src_home_label_13, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_13. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_13, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_13, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_13, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_13, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_13, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_13, &lv_font_montserratMedium_11, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_13, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_label_host
    ui->src_home_label_host = lv_label_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_label_host, 6, 40);
    lv_obj_set_size(ui->src_home_label_host, 29, 12);
    lv_obj_set_scrollbar_mode(ui->src_home_label_host, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_host, "Host:");
    lv_label_set_long_mode(ui->src_home_label_host, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_host. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_host, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_host, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_host, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_host, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_host, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_host, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_host, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_host, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_label_username
    ui->src_home_label_username = lv_label_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_label_username, 3, 82-10);
    lv_obj_set_size(ui->src_home_label_username, 63, 13);
    lv_obj_set_scrollbar_mode(ui->src_home_label_username, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_username, "UserName:");
    lv_label_set_long_mode(ui->src_home_label_username, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_username. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_username, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_username, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_username, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_username, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_username, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_username, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_username, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_username, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_label_port
    ui->src_home_label_port = lv_label_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_label_port, 129+60, 40);
    lv_obj_set_size(ui->src_home_label_port, 29, 12);
    lv_obj_set_scrollbar_mode(ui->src_home_label_port, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_port, "Port:");
    lv_label_set_long_mode(ui->src_home_label_port, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_port. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_port, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_port, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_port, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_port, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_port, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_port, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_port, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_port, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_label_passworld
    ui->src_home_label_passworld = lv_label_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_label_passworld, 2, 124-10-5);
    lv_obj_set_size(ui->src_home_label_passworld, 63, 13);
    lv_obj_set_scrollbar_mode(ui->src_home_label_passworld, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_passworld, "Passworld:");
    lv_label_set_long_mode(ui->src_home_label_passworld, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_passworld. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_passworld, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_passworld, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_passworld, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_passworld, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_passworld, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_passworld, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_passworld, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_passworld, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_ta_mqHost
    ui->src_home_ta_mqHost = lv_textarea_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_ta_mqHost, 35, 33);
    lv_obj_set_size(ui->src_home_ta_mqHost, 94+60, 22);
    lv_obj_set_scrollbar_mode(ui->src_home_ta_mqHost, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_ta_mqHost. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_mqHost, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_mqHost, lv_color_make(0x41, 0x41, 0x41), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_ta_mqHost, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_ta_mqHost, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_ta_mqHost, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_ta_mqHost, lv_color_make(0x5e, 0x5e, 0x5e), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_ta_mqHost, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_ta_mqHost, 124, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_ta_mqHost, lv_color_make(0xe6, 0xe6, 0xe6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_ta_mqHost, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_ta_mqHost, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_ta_mqHost, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_ta_mqHost. Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_mqHost, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_mqHost, lv_color_make(0x21, 0x95, 0xf6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_mqHost, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_textarea_set_text(ui->src_home_ta_mqHost, "MQTT域名或IP");

    //use keyboard on src_home_ta_mqHost
    lv_obj_add_event_cb(ui->src_home_ta_mqHost, ta_src_home_event_cb, LV_EVENT_ALL, g_kb_src_home);

    //Write codes src_home_ta_mqPort
    ui->src_home_ta_mqPort = lv_textarea_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_ta_mqPort, 156+60, 34);
    lv_obj_set_size(ui->src_home_ta_mqPort, 33, 23);
    lv_obj_set_scrollbar_mode(ui->src_home_ta_mqPort, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_ta_mqPort. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_mqPort, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_mqPort, lv_color_make(0x41, 0x41, 0x41), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_ta_mqPort, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_ta_mqPort, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_ta_mqPort, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_ta_mqPort, lv_color_make(0x5e, 0x5e, 0x5e), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_ta_mqPort, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_ta_mqPort, 124, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_ta_mqPort, lv_color_make(0xe6, 0xe6, 0xe6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_ta_mqPort, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_ta_mqPort, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_ta_mqPort, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_ta_mqPort, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_ta_mqPort. Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_mqPort, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_mqPort, lv_color_make(0x21, 0x95, 0xf6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_mqPort, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_textarea_set_text(ui->src_home_ta_mqPort, "1883");

    //use keyboard on src_home_ta_mqPort
    lv_obj_add_event_cb(ui->src_home_ta_mqPort, ta_src_home_event_cb, LV_EVENT_ALL, g_kb_src_home);

    //Write codes src_home_ta_mqUsername
    ui->src_home_ta_mqUsername = lv_textarea_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_ta_mqUsername, 63, 71-5);
    lv_obj_set_size(ui->src_home_ta_mqUsername, 128, 22);
    lv_obj_set_scrollbar_mode(ui->src_home_ta_mqUsername, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_ta_mqUsername. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_mqUsername, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_mqUsername, lv_color_make(0x41, 0x41, 0x41), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_ta_mqUsername, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_ta_mqUsername, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_ta_mqUsername, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_ta_mqUsername, lv_color_make(0x5e, 0x5e, 0x5e), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_ta_mqUsername, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_ta_mqUsername, 124, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_ta_mqUsername, lv_color_make(0xe6, 0xe6, 0xe6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_ta_mqUsername, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_ta_mqUsername, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_ta_mqUsername, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_ta_mqUsername. Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_mqUsername, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_mqUsername, lv_color_make(0x21, 0x95, 0xf6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_mqUsername, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_textarea_set_text(ui->src_home_ta_mqUsername, "MQTT用户名");

    //use keyboard on src_home_ta_mqUsername
    lv_obj_add_event_cb(ui->src_home_ta_mqUsername, ta_src_home_event_cb, LV_EVENT_ALL, g_kb_src_home);

    //Write codes src_home_ta_mqtt_pass
    ui->src_home_ta_mqtt_pass = lv_textarea_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_ta_mqtt_pass, 63, 113-10-3);
    lv_obj_set_size(ui->src_home_ta_mqtt_pass, 128, 22);
    lv_obj_set_scrollbar_mode(ui->src_home_ta_mqtt_pass, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_ta_mqtt_pass. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_mqtt_pass, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_mqtt_pass, lv_color_make(0x41, 0x41, 0x41), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_ta_mqtt_pass, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_ta_mqtt_pass, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_ta_mqtt_pass, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_ta_mqtt_pass, lv_color_make(0x5e, 0x5e, 0x5e), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_ta_mqtt_pass, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_ta_mqtt_pass, 124, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_ta_mqtt_pass, lv_color_make(0xe6, 0xe6, 0xe6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_ta_mqtt_pass, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_ta_mqtt_pass, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_ta_mqtt_pass, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_ta_mqtt_pass. Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_mqtt_pass, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_mqtt_pass, lv_color_make(0x21, 0x95, 0xf6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_mqtt_pass, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_textarea_set_text(ui->src_home_ta_mqtt_pass, "MQTT密码");

    //use keyboard on src_home_ta_mqtt_pass
    lv_obj_add_event_cb(ui->src_home_ta_mqtt_pass, ta_src_home_event_cb, LV_EVENT_ALL, g_kb_src_home);

    //Write codes src_home_btn_connect_mqtt
    ui->src_home_btn_connect_mqtt = lv_btn_create(ui->src_home_cont_3);
    lv_obj_set_pos(ui->src_home_btn_connect_mqtt, 73+30, 151-15);
    lv_obj_set_size(ui->src_home_btn_connect_mqtt, 51, 26);
    lv_obj_set_scrollbar_mode(ui->src_home_btn_connect_mqtt, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_btn_connect_mqtt. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_btn_connect_mqtt, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_btn_connect_mqtt, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_btn_connect_mqtt, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_btn_connect_mqtt, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_btn_connect_mqtt, 90, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_btn_connect_mqtt, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_btn_connect_mqtt, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_btn_connect_mqtt, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_btn_connect_mqtt, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_btn_connect_mqtt, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_btn_connect_mqtt, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_btn_connect_mqtt, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_btn_connect_mqtt, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_btn_connect_mqtt, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_btn_connect_mqtt, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_btn_connect_mqtt, &lv_font_simhei_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_btn_connect_mqtt, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    ui->src_home_btn_connect_mqtt_label = lv_label_create(ui->src_home_btn_connect_mqtt);
    lv_label_set_text(ui->src_home_btn_connect_mqtt_label, "连接");
    lv_obj_set_style_pad_all(ui->src_home_btn_connect_mqtt, 0, LV_STATE_DEFAULT);
    lv_obj_align(ui->src_home_btn_connect_mqtt_label, LV_ALIGN_CENTER, 0, 0);

    //Write codes src_home_cont_6
    ui->src_home_cont_6 = lv_obj_create(ui->src_home_tabview_1_SmartCtrl);
    lv_obj_set_pos(ui->src_home_cont_6, 10, 30);
    lv_obj_set_size(ui->src_home_cont_6, 152+90, 150);
    lv_obj_set_scrollbar_mode(ui->src_home_cont_6, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_cont_6. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_cont_6, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_cont_6, lv_color_make(0x3f, 0x3f, 0x3f), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_cont_6, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_cont_6, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_cont_6, 238, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_cont_6, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_cont_6, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_cont_6, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_cont_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Hidden for widget src_home_cont_6
    lv_obj_add_flag(ui->src_home_cont_6, LV_OBJ_FLAG_HIDDEN);

    //Write codes src_home_label_15
    ui->src_home_label_15 = lv_label_create(ui->src_home_cont_6);
    lv_obj_set_pos(ui->src_home_label_15, 70-36, 19);
    lv_obj_set_size(ui->src_home_label_15, 41, 15);
    lv_obj_set_scrollbar_mode(ui->src_home_label_15, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_15, "Topic:");
    lv_label_set_long_mode(ui->src_home_label_15, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_15. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_15, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_15, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_15, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_15, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_15, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_15, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_15, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_label_16
    ui->src_home_label_16 = lv_label_create(ui->src_home_cont_6);
    lv_obj_set_pos(ui->src_home_label_16, 0, 83);
    lv_obj_set_size(ui->src_home_label_16, 80, 15);
    lv_obj_set_scrollbar_mode(ui->src_home_label_16, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_16, "关闭时发送:");
    lv_label_set_long_mode(ui->src_home_label_16, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_16. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_16, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_16, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_16, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_16, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_16, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_16, &lv_font_simhei_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_16, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_ta_topic
    ui->src_home_ta_topic = lv_textarea_create(ui->src_home_cont_6);
    lv_obj_set_pos(ui->src_home_ta_topic, 75, 17);
    lv_obj_set_size(ui->src_home_ta_topic, 142, 20);
    lv_obj_set_scrollbar_mode(ui->src_home_ta_topic, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_ta_topic. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_topic, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_topic, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_ta_topic, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_ta_topic, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_ta_topic, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_ta_topic, lv_color_make(0x49, 0x49, 0x49), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_ta_topic, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_ta_topic, 120, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_ta_topic, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_ta_topic, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_ta_topic, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_ta_topic, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_ta_topic. Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_topic, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_topic, lv_color_make(0x21, 0x95, 0xf6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_topic, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_textarea_set_text(ui->src_home_ta_topic, "ha/ai");

    //use keyboard on src_home_ta_topic
    lv_obj_add_event_cb(ui->src_home_ta_topic, ta_src_home_event_cb, LV_EVENT_ALL, g_kb_src_home);

    //Write codes src_home_ta_msg_close
    ui->src_home_ta_msg_close = lv_textarea_create(ui->src_home_cont_6);
    lv_obj_set_pos(ui->src_home_ta_msg_close, 75, 50+28);
    lv_obj_set_size(ui->src_home_ta_msg_close, 142, 30);
    lv_obj_set_scrollbar_mode(ui->src_home_ta_msg_close, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_ta_msg_close. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_msg_close, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_msg_close, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_ta_msg_close, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_ta_msg_close, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_ta_msg_close, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_ta_msg_close, lv_color_make(0x49, 0x49, 0x49), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_ta_msg_close, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_ta_msg_close, 118, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_ta_msg_close, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_ta_msg_close, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_ta_msg_close, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_ta_msg_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_ta_msg_close. Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_msg_close, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_msg_close, lv_color_make(0x21, 0x95, 0xf6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_msg_close, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_textarea_set_text(ui->src_home_ta_msg_close, "{\"status\":0}");

    //use keyboard on src_home_ta_msg_close
    lv_obj_add_event_cb(ui->src_home_ta_msg_close, ta_src_home_event_cb, LV_EVENT_ALL, g_kb_src_home);

    //Write codes src_home_btn_topicOK
    ui->src_home_btn_topicOK = lv_btn_create(ui->src_home_cont_6);
    lv_obj_set_pos(ui->src_home_btn_topicOK, 40+50, 115);
    lv_obj_set_size(ui->src_home_btn_topicOK, 60, 24);
    lv_obj_set_scrollbar_mode(ui->src_home_btn_topicOK, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_btn_topicOK. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_btn_topicOK, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_btn_topicOK, lv_color_make(0x12, 0x5e, 0x95), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_btn_topicOK, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_btn_topicOK, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_btn_topicOK, 138, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_btn_topicOK, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_btn_topicOK, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_btn_topicOK, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_btn_topicOK, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_btn_topicOK, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_btn_topicOK, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_btn_topicOK, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_btn_topicOK, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_btn_topicOK, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_btn_topicOK, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_btn_topicOK, &lv_font_simhei_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_btn_topicOK, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    ui->src_home_btn_topicOK_label = lv_label_create(ui->src_home_btn_topicOK);
    lv_label_set_text(ui->src_home_btn_topicOK_label, "确定");
    lv_obj_set_style_pad_all(ui->src_home_btn_topicOK, 0, LV_STATE_DEFAULT);
    lv_obj_align(ui->src_home_btn_topicOK_label, LV_ALIGN_CENTER, 0, 0);

    //Write codes src_home_label_17
    ui->src_home_label_17 = lv_label_create(ui->src_home_cont_6);
    lv_obj_set_pos(ui->src_home_label_17, 23+50, 3);
    lv_obj_set_size(ui->src_home_label_17, 100, 15);
    lv_obj_set_scrollbar_mode(ui->src_home_label_17, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_17, "智能灯控制配置");
    lv_label_set_long_mode(ui->src_home_label_17, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_17. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_17, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_17, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_17, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_17, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_17, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_17, &lv_font_simhei_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_17, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_label_19
    ui->src_home_label_19 = lv_label_create(ui->src_home_cont_6);
    lv_obj_set_pos(ui->src_home_label_19, 0, 55);
    lv_obj_set_size(ui->src_home_label_19, 80, 15);
    lv_obj_set_scrollbar_mode(ui->src_home_label_19, LV_SCROLLBAR_MODE_OFF);
    lv_label_set_text(ui->src_home_label_19, "打开时发送:");
    lv_label_set_long_mode(ui->src_home_label_19, LV_LABEL_LONG_WRAP);

    //Set style for src_home_label_19. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_label_19, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_label_19, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_label_19, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_label_19, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_label_19, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_label_19, &lv_font_simhei_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_label_19, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes src_home_ta_msg_open
    ui->src_home_ta_msg_open = lv_textarea_create(ui->src_home_cont_6);
    lv_obj_set_pos(ui->src_home_ta_msg_open, 75, 62-20);
    lv_obj_set_size(ui->src_home_ta_msg_open, 142, 30);
    lv_obj_set_scrollbar_mode(ui->src_home_ta_msg_open, LV_SCROLLBAR_MODE_OFF);

    //Set style for src_home_ta_msg_open. Part: LV_PART_MAIN, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_msg_open, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_msg_open, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->src_home_ta_msg_open, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->src_home_ta_msg_open, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui->src_home_ta_msg_open, lv_color_make(0x21, 0x95, 0xf6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_x(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_ofs_y(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui->src_home_ta_msg_open, lv_color_make(0x49, 0x49, 0x49), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->src_home_ta_msg_open, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui->src_home_ta_msg_open, 118, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->src_home_ta_msg_open, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->src_home_ta_msg_open, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->src_home_ta_msg_open, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->src_home_ta_msg_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Set style for src_home_ta_msg_open. Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT
    lv_obj_set_style_radius(ui->src_home_ta_msg_open, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->src_home_ta_msg_open, lv_color_make(0x21, 0x95, 0xf6), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->src_home_ta_msg_open, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_textarea_set_text(ui->src_home_ta_msg_open, "{\"status\":1}");

    //use keyboard on src_home_ta_msg_open
    lv_obj_add_event_cb(ui->src_home_ta_msg_open, ta_src_home_event_cb, LV_EVENT_ALL, g_kb_src_home);



}

关联上一篇

[智能家居]tasmota 接入HomeAssistant https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=44656

回复

使用道具 举报

WT_0213 | 2024-5-3 18:38:53 | 显示全部楼层

本帖最后由 WT_0213 于 2024-5-3 19:17 编辑

【小安派DSL智能桌面助手MQTT控制HA设备】 https://www.bilibili.com/video/BV1Cb42187jW/?share_source=copy_web&vd_source=95f092a8edb82d1fb04a2d285b5f28a7

回复 支持 反对

使用道具 举报

WT_0213 | 2024-5-3 18:16:46 | 显示全部楼层
源代码在这里

AiPi-DSL_Dashboard_code.zip

892.9 KB, 下载次数: 4

回复 支持 反对

使用道具 举报

hrqwe | 2024-5-3 18:21:51 | 显示全部楼层
给源码点赞!
日拱一卒,功不唐捐
回复 支持 反对

使用道具 举报

lazy | 2024-5-6 13:46:43 | 显示全部楼层
回复

使用道具 举报

爱笑 | 2024-5-7 13:48:37 | 显示全部楼层
优秀啊!
用心做好保姆工作
回复

使用道具 举报

WT_0213 | 2024-5-27 14:34:15 | 显示全部楼层
回复

使用道具 举报

wurong | 2024-5-27 22:07:34 | 显示全部楼层
666
回复

使用道具 举报

知行合一 | 2024-5-29 21:47:15 | 显示全部楼层
棒棒的
回复

使用道具 举报

wukong50 | 2024-6-7 13:06:59 | 显示全部楼层
感谢分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则