69 lines
4.5 KiB
C
69 lines
4.5 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_DeviceInfo_settingHeader3 = lv_obj_create(ui_DeviceInfo);
|
|
lv_obj_set_width(ui_DeviceInfo_settingHeader3, 320);
|
|
lv_obj_set_height(ui_DeviceInfo_settingHeader3, 50);
|
|
lv_obj_set_x(ui_DeviceInfo_settingHeader3, -1);
|
|
lv_obj_set_y(ui_DeviceInfo_settingHeader3, 2);
|
|
lv_obj_set_align(ui_DeviceInfo_settingHeader3, LV_ALIGN_TOP_MID);
|
|
lv_obj_clear_flag(ui_DeviceInfo_settingHeader3, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
|
lv_obj_set_style_radius(ui_DeviceInfo_settingHeader3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_border_width(ui_DeviceInfo_settingHeader3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
|
|
ui_DeviceInfo_Label18 = lv_label_create(ui_DeviceInfo_settingHeader3);
|
|
lv_obj_set_width(ui_DeviceInfo_Label18, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_DeviceInfo_Label18, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_x(ui_DeviceInfo_Label18, 4);
|
|
lv_obj_set_y(ui_DeviceInfo_Label18, 0);
|
|
lv_obj_set_align(ui_DeviceInfo_Label18, LV_ALIGN_LEFT_MID);
|
|
lv_label_set_text(ui_DeviceInfo_Label18, "<");
|
|
|
|
ui_DeviceInfo_Label17 = lv_label_create(ui_DeviceInfo_settingHeader3);
|
|
lv_obj_set_width(ui_DeviceInfo_Label17, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_DeviceInfo_Label17, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_align(ui_DeviceInfo_Label17, LV_ALIGN_BOTTOM_MID);
|
|
lv_label_set_text(ui_DeviceInfo_Label17, "DeviceInfo");
|
|
lv_obj_set_style_text_color(ui_DeviceInfo_Label17, lv_color_hex(0x040000), LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_opa(ui_DeviceInfo_Label17, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
lv_obj_set_style_text_font(ui_DeviceInfo_Label17, &ui_font_MiSansM, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
|
|
ui_DeviceInfo_TextArea1 = lv_textarea_create(ui_DeviceInfo);
|
|
lv_obj_set_width(ui_DeviceInfo_TextArea1, 299);
|
|
lv_obj_set_height(ui_DeviceInfo_TextArea1, 334);
|
|
lv_obj_set_x(ui_DeviceInfo_TextArea1, 0);
|
|
lv_obj_set_y(ui_DeviceInfo_TextArea1, -10);
|
|
lv_obj_set_align(ui_DeviceInfo_TextArea1, LV_ALIGN_CENTER);
|
|
lv_textarea_set_text(ui_DeviceInfo_TextArea1,
|
|
"Device Name: Pulse Flow Detection Controller\n-----------------------------------------------------\nSoftware Version: 20250304.1.0A\n Hardware Version: 20250302.1.0A\n-----------------------------------------------------\nMain Control Chip: esp32-s3-wroom\n IDF Version: Ver 5.2\n RAM Size: 8MB\n Flash Size: 4MB\n-----------------------------------------------------\nScreen Size: 320-480px 3.5-inch\n Interface Type: intel-8080 parallel port\n Pixel Frequency: 20MHz\n Touch Screen Controller: ft6336U\n Display Controller: ILI9488 (compatible with ST7789)\nDisplay Framework: LVGL\n Version: Version 8.2.0\n-----------------------------------------------------\nBattery Information:\n Capacity: 2500mAh\n Voltage: 2.7V-4.2V\n Charging Current: 0.5C\n-----------------------------------------------------\nSoftware Server Address: sunme.top\n Technical Support: 13345203604\n Name: Wang Xiangen\nDesign Date: 2025.3.7\n Address: Danyang City, Jiangsu Province");
|
|
lv_textarea_set_placeholder_text(ui_DeviceInfo_TextArea1, "Placeholder...");
|
|
lv_obj_set_style_text_font(ui_DeviceInfo_TextArea1, &lv_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT);
|
|
|
|
ui_DeviceInfo_Button2 = lv_btn_create(ui_DeviceInfo);
|
|
lv_obj_set_width(ui_DeviceInfo_Button2, 271);
|
|
lv_obj_set_height(ui_DeviceInfo_Button2, 50);
|
|
lv_obj_set_x(ui_DeviceInfo_Button2, -3);
|
|
lv_obj_set_y(ui_DeviceInfo_Button2, 195);
|
|
lv_obj_set_align(ui_DeviceInfo_Button2, LV_ALIGN_CENTER);
|
|
|
|
ui_DeviceInfo_Label12 = lv_label_create(ui_DeviceInfo_Button2);
|
|
lv_obj_set_width(ui_DeviceInfo_Label12, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_height(ui_DeviceInfo_Label12, LV_SIZE_CONTENT); /// 1
|
|
lv_obj_set_align(ui_DeviceInfo_Label12, LV_ALIGN_CENTER);
|
|
lv_label_set_text(ui_DeviceInfo_Label12, "Back To Home");
|
|
|
|
lv_obj_add_event_cb(ui_DeviceInfo_Label18, ui_event_DeviceInfo_Label18, LV_EVENT_ALL, NULL);
|
|
lv_obj_add_event_cb(ui_DeviceInfo_settingHeader3, ui_event_DeviceInfo_settingHeader3, LV_EVENT_ALL, NULL);
|
|
lv_obj_add_event_cb(ui_DeviceInfo_Button2, ui_event_DeviceInfo_Button2, LV_EVENT_ALL, NULL);
|
|
|
|
}
|