54 lines
2.9 KiB
C
54 lines
2.9 KiB
C
|
|
// This file was generated by SquareLine Studio
|
||
|
|
// SquareLine Studio version: SquareLine Studio 1.5.1
|
||
|
|
// LVGL version: 8.3.6
|
||
|
|
// Project name: ESP32S3_UI
|
||
|
|
|
||
|
|
#include "../ui.h"
|
||
|
|
|
||
|
|
void ui_DeviceInfo_screen_init(void)
|
||
|
|
{
|
||
|
|
ui_DeviceInfo = lv_obj_create(NULL);
|
||
|
|
lv_obj_clear_flag(ui_DeviceInfo, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
||
|
|
|
||
|
|
ui_settingHeader3 = lv_obj_create(ui_DeviceInfo);
|
||
|
|
lv_obj_set_width(ui_settingHeader3, 320);
|
||
|
|
lv_obj_set_height(ui_settingHeader3, 50);
|
||
|
|
lv_obj_set_x(ui_settingHeader3, -1);
|
||
|
|
lv_obj_set_y(ui_settingHeader3, 2);
|
||
|
|
lv_obj_set_align(ui_settingHeader3, LV_ALIGN_TOP_MID);
|
||
|
|
lv_obj_clear_flag(ui_settingHeader3, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
||
|
|
lv_obj_set_style_radius(ui_settingHeader3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||
|
|
lv_obj_set_style_border_width(ui_settingHeader3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||
|
|
|
||
|
|
ui_HomeImg3 = lv_img_create(ui_settingHeader3);
|
||
|
|
lv_img_set_src(ui_HomeImg3, &ui_img_981464361);
|
||
|
|
lv_obj_set_width(ui_HomeImg3, LV_SIZE_CONTENT); /// 40
|
||
|
|
lv_obj_set_height(ui_HomeImg3, LV_SIZE_CONTENT); /// 40
|
||
|
|
lv_obj_set_align(ui_HomeImg3, LV_ALIGN_LEFT_MID);
|
||
|
|
lv_obj_add_flag(ui_HomeImg3, LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_ADV_HITTEST); /// Flags
|
||
|
|
lv_obj_clear_flag(ui_HomeImg3, LV_OBJ_FLAG_PRESS_LOCK | LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
||
|
|
|
||
|
|
ui_Label17 = lv_label_create(ui_settingHeader3);
|
||
|
|
lv_obj_set_width(ui_Label17, LV_SIZE_CONTENT); /// 1
|
||
|
|
lv_obj_set_height(ui_Label17, LV_SIZE_CONTENT); /// 1
|
||
|
|
lv_obj_set_align(ui_Label17, LV_ALIGN_BOTTOM_MID);
|
||
|
|
lv_label_set_text(ui_Label17, "DeviceInfo");
|
||
|
|
lv_obj_set_style_text_color(ui_Label17, lv_color_hex(0x040000), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||
|
|
lv_obj_set_style_text_opa(ui_Label17, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||
|
|
lv_obj_set_style_text_font(ui_Label17, &ui_font_MiSansM, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||
|
|
|
||
|
|
ui_TextArea1 = lv_textarea_create(ui_DeviceInfo);
|
||
|
|
lv_obj_set_width(ui_TextArea1, 292);
|
||
|
|
lv_obj_set_height(ui_TextArea1, 375);
|
||
|
|
lv_obj_set_x(ui_TextArea1, -2);
|
||
|
|
lv_obj_set_y(ui_TextArea1, 14);
|
||
|
|
lv_obj_set_align(ui_TextArea1, LV_ALIGN_CENTER);
|
||
|
|
lv_textarea_set_text(ui_TextArea1,
|
||
|
|
"\nDevice Name : FluxDC\n================================\n\nSoftware version:20250304.1.0\nHardware version:20250302.1.0\n---------------------------------------------------\nMcu:esp32-s3-wroom\nRam:8MB\nFlash:4MB\n---------------------------------------------------\nScreen:320-480px 3.5inch\nPort:i80\nTouch ic:ft6336U\nDriver ic:ili9488 compatible with st7789\n---------------------------------------------------\nSoftware website:sunme.top:3000\nTechnology support:13345203604\nName:wang xiang en\n\n");
|
||
|
|
lv_textarea_set_placeholder_text(ui_TextArea1, "Placeholder...");
|
||
|
|
|
||
|
|
lv_obj_add_event_cb(ui_HomeImg3, ui_event_HomeImg3, LV_EVENT_ALL, NULL);
|
||
|
|
lv_obj_add_event_cb(ui_settingHeader3, ui_event_settingHeader3, LV_EVENT_ALL, NULL);
|
||
|
|
|
||
|
|
}
|