// 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_pageDeviceInformation_screen_init(void) { ui_pageDeviceInformation = lv_obj_create(NULL); lv_obj_clear_flag(ui_pageDeviceInformation, LV_OBJ_FLAG_SCROLLABLE); /// Flags ui_pageDeviceInformation_pannelHeader = lv_obj_create(ui_pageDeviceInformation); lv_obj_set_width(ui_pageDeviceInformation_pannelHeader, 320); lv_obj_set_height(ui_pageDeviceInformation_pannelHeader, 50); lv_obj_set_x(ui_pageDeviceInformation_pannelHeader, -1); lv_obj_set_y(ui_pageDeviceInformation_pannelHeader, 2); lv_obj_set_align(ui_pageDeviceInformation_pannelHeader, LV_ALIGN_TOP_MID); lv_obj_clear_flag(ui_pageDeviceInformation_pannelHeader, LV_OBJ_FLAG_SCROLLABLE); /// Flags lv_obj_set_style_radius(ui_pageDeviceInformation_pannelHeader, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui_pageDeviceInformation_pannelHeader, 0, LV_PART_MAIN | LV_STATE_DEFAULT); ui_pageDeviceInformation_labelBack = lv_label_create(ui_pageDeviceInformation_pannelHeader); lv_obj_set_width(ui_pageDeviceInformation_labelBack, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_pageDeviceInformation_labelBack, LV_SIZE_CONTENT); /// 1 lv_obj_set_x(ui_pageDeviceInformation_labelBack, 4); lv_obj_set_y(ui_pageDeviceInformation_labelBack, 0); lv_obj_set_align(ui_pageDeviceInformation_labelBack, LV_ALIGN_LEFT_MID); lv_label_set_text(ui_pageDeviceInformation_labelBack, "<"); ui_pageDeviceInformation_lableDeviceInformation = lv_label_create(ui_pageDeviceInformation_pannelHeader); lv_obj_set_width(ui_pageDeviceInformation_lableDeviceInformation, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_pageDeviceInformation_lableDeviceInformation, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_pageDeviceInformation_lableDeviceInformation, LV_ALIGN_BOTTOM_MID); lv_label_set_text(ui_pageDeviceInformation_lableDeviceInformation, "DeviceInfo"); lv_obj_set_style_text_color(ui_pageDeviceInformation_lableDeviceInformation, lv_color_hex(0x040000), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_pageDeviceInformation_lableDeviceInformation, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_pageDeviceInformation_lableDeviceInformation, &ui_font_MiSansM, LV_PART_MAIN | LV_STATE_DEFAULT); ui_pageDeviceInformation_panelBody2 = lv_obj_create(ui_pageDeviceInformation); lv_obj_set_width(ui_pageDeviceInformation_panelBody2, 320); lv_obj_set_height(ui_pageDeviceInformation_panelBody2, 430); lv_obj_set_x(ui_pageDeviceInformation_panelBody2, 1); lv_obj_set_y(ui_pageDeviceInformation_panelBody2, 20); lv_obj_set_align(ui_pageDeviceInformation_panelBody2, LV_ALIGN_CENTER); lv_obj_add_flag(ui_pageDeviceInformation_panelBody2, LV_OBJ_FLAG_EVENT_BUBBLE | LV_OBJ_FLAG_SCROLL_ONE); /// Flags lv_obj_clear_flag(ui_pageDeviceInformation_panelBody2, LV_OBJ_FLAG_GESTURE_BUBBLE); /// Flags lv_obj_set_scrollbar_mode(ui_pageDeviceInformation_panelBody2, LV_SCROLLBAR_MODE_ACTIVE); lv_obj_set_scroll_dir(ui_pageDeviceInformation_panelBody2, LV_DIR_VER); lv_obj_set_style_radius(ui_pageDeviceInformation_panelBody2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui_pageDeviceInformation_panelBody2, lv_color_hex(0xE6E6E6), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui_pageDeviceInformation_panelBody2, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui_pageDeviceInformation_panelBody2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui_pageDeviceInformation_panelBody2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui_pageDeviceInformation_panelBody2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui_pageDeviceInformation_panelBody2, 30, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui_pageDeviceInformation_panelBody2, 0, LV_PART_MAIN | LV_STATE_DEFAULT); ui_pageDeviceInformation_textAreaContent = lv_textarea_create(ui_pageDeviceInformation_panelBody2); lv_obj_set_width(ui_pageDeviceInformation_textAreaContent, 299); lv_obj_set_height(ui_pageDeviceInformation_textAreaContent, 334); lv_obj_set_x(ui_pageDeviceInformation_textAreaContent, -1); lv_obj_set_y(ui_pageDeviceInformation_textAreaContent, -52); lv_obj_set_align(ui_pageDeviceInformation_textAreaContent, LV_ALIGN_CENTER); lv_textarea_set_text(ui_pageDeviceInformation_textAreaContent, "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_pageDeviceInformation_textAreaContent, "Placeholder..."); lv_obj_set_style_text_font(ui_pageDeviceInformation_textAreaContent, &lv_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT); ui_pageDeviceInformation_buttonBackToHome = lv_btn_create(ui_pageDeviceInformation_panelBody2); lv_obj_set_width(ui_pageDeviceInformation_buttonBackToHome, 271); lv_obj_set_height(ui_pageDeviceInformation_buttonBackToHome, 50); lv_obj_set_x(ui_pageDeviceInformation_buttonBackToHome, 0); lv_obj_set_y(ui_pageDeviceInformation_buttonBackToHome, 156); lv_obj_set_align(ui_pageDeviceInformation_buttonBackToHome, LV_ALIGN_CENTER); ui_pageDeviceInformation_labelBackToHome = lv_label_create(ui_pageDeviceInformation_buttonBackToHome); lv_obj_set_width(ui_pageDeviceInformation_labelBackToHome, LV_SIZE_CONTENT); /// 1 lv_obj_set_height(ui_pageDeviceInformation_labelBackToHome, LV_SIZE_CONTENT); /// 1 lv_obj_set_align(ui_pageDeviceInformation_labelBackToHome, LV_ALIGN_CENTER); lv_label_set_text(ui_pageDeviceInformation_labelBackToHome, "Back To Home"); lv_obj_add_event_cb(ui_pageDeviceInformation_labelBack, ui_event_pageDeviceInformation_labelBack, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_pageDeviceInformation_pannelHeader, ui_event_pageDeviceInformation_pannelHeader, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_pageDeviceInformation_buttonBackToHome, ui_event_pageDeviceInformation_buttonBackToHome, LV_EVENT_ALL, NULL); lv_obj_add_event_cb(ui_pageDeviceInformation_panelBody2, ui_event_pageDeviceInformation_panelBody2, LV_EVENT_ALL, NULL); }