setup_scr_screen.c 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. /*
  2. * Copyright 2025 NXP
  3. * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
  4. * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
  5. * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
  6. * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
  7. * terms, then you may not retain, install, activate or otherwise use the software.
  8. */
  9. #include "lvgl.h"
  10. #include <stdio.h>
  11. #include "gui_guider.h"
  12. #include "events_init.h"
  13. #include "widgets_init.h"
  14. #include "custom.h"
  15. void setup_scr_screen(lv_ui *ui)
  16. {
  17. //Write codes screen
  18. ui->screen = lv_obj_create(NULL);
  19. lv_obj_set_size(ui->screen, 480, 480);
  20. lv_obj_set_scrollbar_mode(ui->screen, LV_SCROLLBAR_MODE_OFF);
  21. //Write style for screen, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  22. lv_obj_set_style_bg_opa(ui->screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  23. lv_obj_set_style_bg_color(ui->screen, lv_color_hex(0x1F1E23), LV_PART_MAIN|LV_STATE_DEFAULT);
  24. lv_obj_set_style_bg_grad_dir(ui->screen, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  25. lv_obj_set_style_bg_image_src(ui->screen, &_main_bg_RGB565A8_480x480, LV_PART_MAIN|LV_STATE_DEFAULT);
  26. lv_obj_set_style_bg_image_opa(ui->screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  27. lv_obj_set_style_bg_image_recolor_opa(ui->screen, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  28. //Write codes screen_cont_power_on
  29. ui->screen_cont_power_on = lv_obj_create(ui->screen);
  30. lv_obj_set_pos(ui->screen_cont_power_on, 0, 0);
  31. lv_obj_set_size(ui->screen_cont_power_on, 480, 480);
  32. lv_obj_set_scrollbar_mode(ui->screen_cont_power_on, LV_SCROLLBAR_MODE_OFF);
  33. lv_obj_add_flag(ui->screen_cont_power_on, LV_OBJ_FLAG_HIDDEN);
  34. //Write style for screen_cont_power_on, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  35. lv_obj_set_style_border_width(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  36. lv_obj_set_style_radius(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  37. lv_obj_set_style_bg_opa(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  38. lv_obj_set_style_pad_top(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  39. lv_obj_set_style_pad_bottom(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  40. lv_obj_set_style_pad_left(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  41. lv_obj_set_style_pad_right(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  42. lv_obj_set_style_shadow_width(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  43. //Write codes screen_label_6
  44. ui->screen_label_6 = lv_label_create(ui->screen_cont_power_on);
  45. lv_obj_set_pos(ui->screen_label_6, 252, 238);
  46. lv_obj_set_size(ui->screen_label_6, 71, 22);
  47. lv_label_set_text(ui->screen_label_6, "°C");
  48. lv_label_set_long_mode(ui->screen_label_6, LV_LABEL_LONG_WRAP);
  49. //Write style for screen_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  50. lv_obj_set_style_border_width(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  51. lv_obj_set_style_radius(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  52. lv_obj_set_style_text_color(ui->screen_label_6, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  53. lv_obj_set_style_text_font(ui->screen_label_6, &lv_font_montserratMedium_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  54. lv_obj_set_style_text_opa(ui->screen_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  55. lv_obj_set_style_text_letter_space(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  56. lv_obj_set_style_text_line_space(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  57. lv_obj_set_style_text_align(ui->screen_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  58. lv_obj_set_style_bg_opa(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  59. lv_obj_set_style_pad_top(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  60. lv_obj_set_style_pad_right(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  61. lv_obj_set_style_pad_bottom(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  62. lv_obj_set_style_pad_left(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  63. lv_obj_set_style_shadow_width(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  64. //Write codes screen_arc_temp
  65. ui->screen_arc_temp = lv_arc_create(ui->screen_cont_power_on);
  66. lv_obj_set_pos(ui->screen_arc_temp, 67, 63);
  67. lv_obj_set_size(ui->screen_arc_temp, 360, 343);
  68. lv_arc_set_mode(ui->screen_arc_temp, LV_ARC_MODE_NORMAL);
  69. lv_arc_set_range(ui->screen_arc_temp, 0, 50);
  70. lv_arc_set_bg_angles(ui->screen_arc_temp, 150, 30);
  71. lv_arc_set_value(ui->screen_arc_temp, 23);
  72. lv_arc_set_rotation(ui->screen_arc_temp, 0);
  73. //Write style for screen_arc_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  74. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  75. lv_obj_set_style_border_width(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  76. lv_obj_set_style_arc_width(ui->screen_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  77. lv_obj_set_style_arc_opa(ui->screen_arc_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  78. lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x817878), LV_PART_MAIN|LV_STATE_DEFAULT);
  79. lv_obj_set_style_arc_rounded(ui->screen_arc_temp, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  80. lv_obj_set_style_radius(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  81. lv_obj_set_style_pad_top(ui->screen_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  82. lv_obj_set_style_pad_bottom(ui->screen_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  83. lv_obj_set_style_pad_left(ui->screen_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  84. lv_obj_set_style_pad_right(ui->screen_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  85. lv_obj_set_style_shadow_width(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  86. //Write style for screen_arc_temp, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  87. lv_obj_set_style_arc_width(ui->screen_arc_temp, 20, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  88. lv_obj_set_style_arc_opa(ui->screen_arc_temp, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  89. lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x00d9ff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  90. lv_obj_set_style_arc_rounded(ui->screen_arc_temp, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  91. //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  92. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  93. lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_DEFAULT);
  94. //Write codes screen_cont_1
  95. ui->screen_cont_1 = lv_obj_create(ui->screen_cont_power_on);
  96. lv_obj_set_pos(ui->screen_cont_1, 255, 374);
  97. lv_obj_set_size(ui->screen_cont_1, 225, 75);
  98. lv_obj_set_scrollbar_mode(ui->screen_cont_1, LV_SCROLLBAR_MODE_OFF);
  99. //Write style for screen_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  100. lv_obj_set_style_border_width(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  101. lv_obj_set_style_radius(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  102. lv_obj_set_style_bg_opa(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  103. lv_obj_set_style_pad_top(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  104. lv_obj_set_style_pad_bottom(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  105. lv_obj_set_style_pad_left(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  106. lv_obj_set_style_pad_right(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  107. lv_obj_set_style_shadow_width(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  108. //Write codes screen_ib_cool
  109. ui->screen_ib_cool = lv_imagebutton_create(ui->screen_cont_1);
  110. lv_obj_set_pos(ui->screen_ib_cool, 58, 11);
  111. lv_obj_set_size(ui->screen_ib_cool, 55, 55);
  112. lv_obj_add_flag(ui->screen_ib_cool, LV_OBJ_FLAG_CHECKABLE);
  113. lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_RELEASED, &_ac_mode_cool_RGB565A8_55x55, NULL, NULL);
  114. lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_PRESSED, &_ac_mode_cool_sel_RGB565A8_55x55, NULL, NULL);
  115. lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_ac_mode_cool_sel_RGB565A8_55x55, NULL, NULL);
  116. ui->screen_ib_cool_label = lv_label_create(ui->screen_ib_cool);
  117. lv_label_set_text(ui->screen_ib_cool_label, "");
  118. lv_label_set_long_mode(ui->screen_ib_cool_label, LV_LABEL_LONG_WRAP);
  119. lv_obj_align(ui->screen_ib_cool_label, LV_ALIGN_CENTER, 0, 0);
  120. lv_obj_set_style_pad_all(ui->screen_ib_cool, 0, LV_STATE_DEFAULT);
  121. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  122. lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  123. lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  124. lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  125. lv_obj_set_style_text_align(ui->screen_ib_cool, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  126. lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  127. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  128. lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  129. lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  130. lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  131. lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  132. lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  133. lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  134. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  135. lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  136. lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  137. lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  138. lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  139. lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  140. lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  141. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  142. lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  143. lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  144. //Write codes screen_ib_heat
  145. ui->screen_ib_heat = lv_imagebutton_create(ui->screen_cont_1);
  146. lv_obj_set_pos(ui->screen_ib_heat, 138, 11);
  147. lv_obj_set_size(ui->screen_ib_heat, 55, 55);
  148. lv_obj_add_flag(ui->screen_ib_heat, LV_OBJ_FLAG_CHECKABLE);
  149. lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_RELEASED, &_ac_mode_heat_RGB565A8_55x55, NULL, NULL);
  150. lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_PRESSED, &_ac_mode_heat_sel_RGB565A8_55x55, NULL, NULL);
  151. lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_ac_mode_heat_sel_RGB565A8_55x55, NULL, NULL);
  152. ui->screen_ib_heat_label = lv_label_create(ui->screen_ib_heat);
  153. lv_label_set_text(ui->screen_ib_heat_label, "");
  154. lv_label_set_long_mode(ui->screen_ib_heat_label, LV_LABEL_LONG_WRAP);
  155. lv_obj_align(ui->screen_ib_heat_label, LV_ALIGN_CENTER, 0, 0);
  156. lv_obj_set_style_pad_all(ui->screen_ib_heat, 0, LV_STATE_DEFAULT);
  157. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  158. lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  159. lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  160. lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  161. lv_obj_set_style_text_align(ui->screen_ib_heat, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  162. lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  163. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  164. lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  165. lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  166. lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  167. lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  168. lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  169. lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  170. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  171. lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  172. lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  173. lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  174. lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  175. lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  176. lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  177. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  178. lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  179. lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  180. //Write codes screen_label_1
  181. ui->screen_label_1 = lv_label_create(ui->screen_cont_power_on);
  182. lv_obj_set_pos(ui->screen_label_1, 147, 150);
  183. lv_obj_set_size(ui->screen_label_1, 34, 32);
  184. lv_label_set_text(ui->screen_label_1, "");
  185. lv_label_set_long_mode(ui->screen_label_1, LV_LABEL_LONG_WRAP);
  186. //Write style for screen_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  187. lv_obj_set_style_border_width(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  188. lv_obj_set_style_radius(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  189. lv_obj_set_style_text_color(ui->screen_label_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  190. lv_obj_set_style_text_font(ui->screen_label_1, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  191. lv_obj_set_style_text_opa(ui->screen_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  192. lv_obj_set_style_text_letter_space(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  193. lv_obj_set_style_text_line_space(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  194. lv_obj_set_style_text_align(ui->screen_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  195. lv_obj_set_style_bg_opa(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  196. lv_obj_set_style_pad_top(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  197. lv_obj_set_style_pad_right(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  198. lv_obj_set_style_pad_bottom(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  199. lv_obj_set_style_pad_left(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  200. lv_obj_set_style_shadow_width(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  201. //Write codes screen_label_2
  202. ui->screen_label_2 = lv_label_create(ui->screen_cont_power_on);
  203. lv_obj_set_pos(ui->screen_label_2, 242, 150);
  204. lv_obj_set_size(ui->screen_label_2, 34, 32);
  205. lv_label_set_text(ui->screen_label_2, "");
  206. lv_label_set_long_mode(ui->screen_label_2, LV_LABEL_LONG_WRAP);
  207. //Write style for screen_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  208. lv_obj_set_style_border_width(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  209. lv_obj_set_style_radius(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  210. lv_obj_set_style_text_color(ui->screen_label_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  211. lv_obj_set_style_text_font(ui->screen_label_2, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  212. lv_obj_set_style_text_opa(ui->screen_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  213. lv_obj_set_style_text_letter_space(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  214. lv_obj_set_style_text_line_space(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  215. lv_obj_set_style_text_align(ui->screen_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  216. lv_obj_set_style_bg_opa(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  217. lv_obj_set_style_pad_top(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  218. lv_obj_set_style_pad_right(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  219. lv_obj_set_style_pad_bottom(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  220. lv_obj_set_style_pad_left(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  221. lv_obj_set_style_shadow_width(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  222. //Write codes screen_label_7
  223. ui->screen_label_7 = lv_label_create(ui->screen_cont_power_on);
  224. lv_obj_set_pos(ui->screen_label_7, 81, 330);
  225. lv_obj_set_size(ui->screen_label_7, 71, 20);
  226. lv_label_set_text(ui->screen_label_7, "0°C");
  227. lv_label_set_long_mode(ui->screen_label_7, LV_LABEL_LONG_WRAP);
  228. //Write style for screen_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  229. lv_obj_set_style_border_width(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  230. lv_obj_set_style_radius(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  231. lv_obj_set_style_text_color(ui->screen_label_7, lv_color_hex(0x9d9191), LV_PART_MAIN|LV_STATE_DEFAULT);
  232. lv_obj_set_style_text_font(ui->screen_label_7, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  233. lv_obj_set_style_text_opa(ui->screen_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  234. lv_obj_set_style_text_letter_space(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  235. lv_obj_set_style_text_line_space(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  236. lv_obj_set_style_text_align(ui->screen_label_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  237. lv_obj_set_style_bg_opa(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  238. lv_obj_set_style_pad_top(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  239. lv_obj_set_style_pad_right(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  240. lv_obj_set_style_pad_bottom(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  241. lv_obj_set_style_pad_left(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  242. lv_obj_set_style_shadow_width(ui->screen_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  243. //Write codes screen_label_8
  244. ui->screen_label_8 = lv_label_create(ui->screen_cont_power_on);
  245. lv_obj_set_pos(ui->screen_label_8, 325, 326);
  246. lv_obj_set_size(ui->screen_label_8, 71, 20);
  247. lv_label_set_text(ui->screen_label_8, "50°C");
  248. lv_label_set_long_mode(ui->screen_label_8, LV_LABEL_LONG_WRAP);
  249. //Write style for screen_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  250. lv_obj_set_style_border_width(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  251. lv_obj_set_style_radius(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  252. lv_obj_set_style_text_color(ui->screen_label_8, lv_color_hex(0x9d9191), LV_PART_MAIN|LV_STATE_DEFAULT);
  253. lv_obj_set_style_text_font(ui->screen_label_8, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  254. lv_obj_set_style_text_opa(ui->screen_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  255. lv_obj_set_style_text_letter_space(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  256. lv_obj_set_style_text_line_space(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  257. lv_obj_set_style_text_align(ui->screen_label_8, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  258. lv_obj_set_style_bg_opa(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  259. lv_obj_set_style_pad_top(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  260. lv_obj_set_style_pad_right(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  261. lv_obj_set_style_pad_bottom(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  262. lv_obj_set_style_pad_left(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  263. lv_obj_set_style_shadow_width(ui->screen_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  264. //Write codes screen_imgbtn_5
  265. ui->screen_imgbtn_5 = lv_imagebutton_create(ui->screen_cont_power_on);
  266. lv_obj_set_pos(ui->screen_imgbtn_5, 46, 384);
  267. lv_obj_set_size(ui->screen_imgbtn_5, 60, 60);
  268. lv_obj_add_flag(ui->screen_imgbtn_5, LV_OBJ_FLAG_CHECKABLE);
  269. lv_imagebutton_set_src(ui->screen_imgbtn_5, LV_IMAGEBUTTON_STATE_RELEASED, &_dinuan3_RGB565A8_60x60, NULL, NULL);
  270. lv_imagebutton_set_src(ui->screen_imgbtn_5, LV_IMAGEBUTTON_STATE_PRESSED, &_dinuan2_RGB565A8_60x60, NULL, NULL);
  271. lv_imagebutton_set_src(ui->screen_imgbtn_5, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_dinuan3_RGB565A8_60x60, NULL, NULL);
  272. lv_imagebutton_set_src(ui->screen_imgbtn_5, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_dinuan2_RGB565A8_60x60, NULL, NULL);
  273. ui->screen_imgbtn_5_label = lv_label_create(ui->screen_imgbtn_5);
  274. lv_label_set_text(ui->screen_imgbtn_5_label, "");
  275. lv_label_set_long_mode(ui->screen_imgbtn_5_label, LV_LABEL_LONG_WRAP);
  276. lv_obj_align(ui->screen_imgbtn_5_label, LV_ALIGN_CENTER, 0, 0);
  277. lv_obj_set_style_pad_all(ui->screen_imgbtn_5, 0, LV_STATE_DEFAULT);
  278. //Write style for screen_imgbtn_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  279. lv_obj_set_style_text_color(ui->screen_imgbtn_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  280. lv_obj_set_style_text_font(ui->screen_imgbtn_5, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  281. lv_obj_set_style_text_opa(ui->screen_imgbtn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  282. lv_obj_set_style_text_align(ui->screen_imgbtn_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  283. lv_obj_set_style_shadow_width(ui->screen_imgbtn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  284. //Write style for screen_imgbtn_5, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  285. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_5, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  286. lv_obj_set_style_image_opa(ui->screen_imgbtn_5, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  287. lv_obj_set_style_text_color(ui->screen_imgbtn_5, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  288. lv_obj_set_style_text_font(ui->screen_imgbtn_5, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  289. lv_obj_set_style_text_opa(ui->screen_imgbtn_5, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  290. lv_obj_set_style_shadow_width(ui->screen_imgbtn_5, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  291. //Write style for screen_imgbtn_5, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  292. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_5, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  293. lv_obj_set_style_image_opa(ui->screen_imgbtn_5, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  294. lv_obj_set_style_text_color(ui->screen_imgbtn_5, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  295. lv_obj_set_style_text_font(ui->screen_imgbtn_5, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  296. lv_obj_set_style_text_opa(ui->screen_imgbtn_5, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  297. lv_obj_set_style_shadow_width(ui->screen_imgbtn_5, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  298. //Write style for screen_imgbtn_5, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  299. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_5, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  300. lv_obj_set_style_image_opa(ui->screen_imgbtn_5, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  301. //Write codes screen_lab_mode
  302. ui->screen_lab_mode = lv_label_create(ui->screen_cont_power_on);
  303. lv_obj_set_pos(ui->screen_lab_mode, 176, 399);
  304. lv_obj_set_size(ui->screen_lab_mode, 131, 34);
  305. lv_label_set_text(ui->screen_lab_mode, "模式");
  306. lv_label_set_long_mode(ui->screen_lab_mode, LV_LABEL_LONG_WRAP);
  307. //Write style for screen_lab_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  308. lv_obj_set_style_border_width(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  309. lv_obj_set_style_radius(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  310. lv_obj_set_style_text_color(ui->screen_lab_mode, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  311. lv_obj_set_style_text_font(ui->screen_lab_mode, &lv_font_Alibaba_PuHuiTi_Medium_31, LV_PART_MAIN|LV_STATE_DEFAULT);
  312. lv_obj_set_style_text_opa(ui->screen_lab_mode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  313. lv_obj_set_style_text_letter_space(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  314. lv_obj_set_style_text_line_space(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  315. lv_obj_set_style_text_align(ui->screen_lab_mode, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  316. lv_obj_set_style_bg_opa(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  317. lv_obj_set_style_pad_top(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  318. lv_obj_set_style_pad_right(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  319. lv_obj_set_style_pad_bottom(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  320. lv_obj_set_style_pad_left(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  321. lv_obj_set_style_shadow_width(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  322. //Write codes screen_lab_env_temp
  323. ui->screen_lab_env_temp = lv_label_create(ui->screen_cont_power_on);
  324. lv_obj_set_pos(ui->screen_lab_env_temp, 181, 155);
  325. lv_obj_set_size(ui->screen_lab_env_temp, 71, 20);
  326. lv_label_set_text(ui->screen_lab_env_temp, "26°C");
  327. lv_label_set_long_mode(ui->screen_lab_env_temp, LV_LABEL_LONG_WRAP);
  328. //Write style for screen_lab_env_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  329. lv_obj_set_style_border_width(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  330. lv_obj_set_style_radius(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  331. lv_obj_set_style_text_color(ui->screen_lab_env_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  332. lv_obj_set_style_text_font(ui->screen_lab_env_temp, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  333. lv_obj_set_style_text_opa(ui->screen_lab_env_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  334. lv_obj_set_style_text_letter_space(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  335. lv_obj_set_style_text_line_space(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  336. lv_obj_set_style_text_align(ui->screen_lab_env_temp, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  337. lv_obj_set_style_bg_opa(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  338. lv_obj_set_style_pad_top(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  339. lv_obj_set_style_pad_right(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  340. lv_obj_set_style_pad_bottom(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  341. lv_obj_set_style_pad_left(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  342. lv_obj_set_style_shadow_width(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  343. //Write codes screen_lab_env_hum
  344. ui->screen_lab_env_hum = lv_label_create(ui->screen_cont_power_on);
  345. lv_obj_set_pos(ui->screen_lab_env_hum, 279, 155);
  346. lv_obj_set_size(ui->screen_lab_env_hum, 71, 20);
  347. lv_label_set_text(ui->screen_lab_env_hum, "40%");
  348. lv_label_set_long_mode(ui->screen_lab_env_hum, LV_LABEL_LONG_WRAP);
  349. //Write style for screen_lab_env_hum, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  350. lv_obj_set_style_border_width(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  351. lv_obj_set_style_radius(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  352. lv_obj_set_style_text_color(ui->screen_lab_env_hum, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  353. lv_obj_set_style_text_font(ui->screen_lab_env_hum, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  354. lv_obj_set_style_text_opa(ui->screen_lab_env_hum, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  355. lv_obj_set_style_text_letter_space(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  356. lv_obj_set_style_text_line_space(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  357. lv_obj_set_style_text_align(ui->screen_lab_env_hum, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  358. lv_obj_set_style_bg_opa(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  359. lv_obj_set_style_pad_top(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  360. lv_obj_set_style_pad_right(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  361. lv_obj_set_style_pad_bottom(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  362. lv_obj_set_style_pad_left(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  363. lv_obj_set_style_shadow_width(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  364. //Write codes screen_lab_ac_temp
  365. ui->screen_lab_ac_temp = lv_label_create(ui->screen_cont_power_on);
  366. lv_obj_set_pos(ui->screen_lab_ac_temp, 165, 208);
  367. lv_obj_set_size(ui->screen_lab_ac_temp, 132, 72);
  368. lv_label_set_text(ui->screen_lab_ac_temp, "26");
  369. lv_label_set_long_mode(ui->screen_lab_ac_temp, LV_LABEL_LONG_WRAP);
  370. //Write style for screen_lab_ac_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  371. lv_obj_set_style_border_width(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  372. lv_obj_set_style_radius(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  373. lv_obj_set_style_text_color(ui->screen_lab_ac_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  374. lv_obj_set_style_text_font(ui->screen_lab_ac_temp, &lv_font_PuHui_ExtraBold_60, LV_PART_MAIN|LV_STATE_DEFAULT);
  375. lv_obj_set_style_text_opa(ui->screen_lab_ac_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  376. lv_obj_set_style_text_letter_space(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  377. lv_obj_set_style_text_line_space(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  378. lv_obj_set_style_text_align(ui->screen_lab_ac_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  379. lv_obj_set_style_bg_opa(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  380. lv_obj_set_style_pad_top(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  381. lv_obj_set_style_pad_right(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  382. lv_obj_set_style_pad_bottom(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  383. lv_obj_set_style_pad_left(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  384. lv_obj_set_style_shadow_width(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  385. //Write codes screen_ib_power
  386. ui->screen_ib_power = lv_imagebutton_create(ui->screen_cont_power_on);
  387. lv_obj_set_pos(ui->screen_ib_power, 199, 293);
  388. lv_obj_set_size(ui->screen_ib_power, 84, 84);
  389. lv_obj_add_flag(ui->screen_ib_power, LV_OBJ_FLAG_CHECKABLE);
  390. lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  391. lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_PRESSED, &_swtich_RGB565A8_84x84, NULL, NULL);
  392. lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  393. ui->screen_ib_power_label = lv_label_create(ui->screen_ib_power);
  394. lv_label_set_text(ui->screen_ib_power_label, "");
  395. lv_label_set_long_mode(ui->screen_ib_power_label, LV_LABEL_LONG_WRAP);
  396. lv_obj_align(ui->screen_ib_power_label, LV_ALIGN_CENTER, 0, 0);
  397. lv_obj_set_style_pad_all(ui->screen_ib_power, 0, LV_STATE_DEFAULT);
  398. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  399. lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  400. lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  401. lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  402. lv_obj_set_style_text_align(ui->screen_ib_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  403. lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  404. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  405. lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  406. lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  407. lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  408. lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  409. lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  410. lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  411. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  412. lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  413. lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  414. lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  415. lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  416. lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  417. lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  418. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  419. lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  420. lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  421. //Write codes screen_cont_power_off
  422. ui->screen_cont_power_off = lv_obj_create(ui->screen);
  423. lv_obj_set_pos(ui->screen_cont_power_off, 0, 0);
  424. lv_obj_set_size(ui->screen_cont_power_off, 480, 480);
  425. lv_obj_set_scrollbar_mode(ui->screen_cont_power_off, LV_SCROLLBAR_MODE_OFF);
  426. //Write style for screen_cont_power_off, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  427. lv_obj_set_style_border_width(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  428. lv_obj_set_style_radius(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  429. lv_obj_set_style_bg_opa(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  430. lv_obj_set_style_pad_top(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  431. lv_obj_set_style_pad_bottom(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  432. lv_obj_set_style_pad_left(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  433. lv_obj_set_style_pad_right(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  434. lv_obj_set_style_shadow_width(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  435. //Write codes screen_lab_env_hum_2
  436. ui->screen_lab_env_hum_2 = lv_label_create(ui->screen_cont_power_off);
  437. lv_obj_set_pos(ui->screen_lab_env_hum_2, 300, 225);
  438. lv_obj_set_size(ui->screen_lab_env_hum_2, 71, 20);
  439. lv_label_set_text(ui->screen_lab_env_hum_2, "40%");
  440. lv_label_set_long_mode(ui->screen_lab_env_hum_2, LV_LABEL_LONG_WRAP);
  441. //Write style for screen_lab_env_hum_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  442. lv_obj_set_style_border_width(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  443. lv_obj_set_style_radius(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  444. lv_obj_set_style_text_color(ui->screen_lab_env_hum_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  445. lv_obj_set_style_text_font(ui->screen_lab_env_hum_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  446. lv_obj_set_style_text_opa(ui->screen_lab_env_hum_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  447. lv_obj_set_style_text_letter_space(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  448. lv_obj_set_style_text_line_space(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  449. lv_obj_set_style_text_align(ui->screen_lab_env_hum_2, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  450. lv_obj_set_style_bg_opa(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  451. lv_obj_set_style_pad_top(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  452. lv_obj_set_style_pad_right(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  453. lv_obj_set_style_pad_bottom(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  454. lv_obj_set_style_pad_left(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  455. lv_obj_set_style_shadow_width(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  456. //Write codes screen_label_9
  457. ui->screen_label_9 = lv_label_create(ui->screen_cont_power_off);
  458. lv_obj_set_pos(ui->screen_label_9, 184, 225);
  459. lv_obj_set_size(ui->screen_label_9, 71, 20);
  460. lv_label_set_text(ui->screen_label_9, "26°C");
  461. lv_label_set_long_mode(ui->screen_label_9, LV_LABEL_LONG_WRAP);
  462. //Write style for screen_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  463. lv_obj_set_style_border_width(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  464. lv_obj_set_style_radius(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  465. lv_obj_set_style_text_color(ui->screen_label_9, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  466. lv_obj_set_style_text_font(ui->screen_label_9, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  467. lv_obj_set_style_text_opa(ui->screen_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  468. lv_obj_set_style_text_letter_space(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  469. lv_obj_set_style_text_line_space(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  470. lv_obj_set_style_text_align(ui->screen_label_9, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  471. lv_obj_set_style_bg_opa(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  472. lv_obj_set_style_pad_top(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  473. lv_obj_set_style_pad_right(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  474. lv_obj_set_style_pad_bottom(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  475. lv_obj_set_style_pad_left(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  476. lv_obj_set_style_shadow_width(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  477. //Write codes screen_label_10
  478. ui->screen_label_10 = lv_label_create(ui->screen_cont_power_off);
  479. lv_obj_set_pos(ui->screen_label_10, 262, 218);
  480. lv_obj_set_size(ui->screen_label_10, 34, 32);
  481. lv_label_set_text(ui->screen_label_10, "");
  482. lv_label_set_long_mode(ui->screen_label_10, LV_LABEL_LONG_WRAP);
  483. //Write style for screen_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  484. lv_obj_set_style_border_width(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  485. lv_obj_set_style_radius(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  486. lv_obj_set_style_text_color(ui->screen_label_10, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  487. lv_obj_set_style_text_font(ui->screen_label_10, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  488. lv_obj_set_style_text_opa(ui->screen_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  489. lv_obj_set_style_text_letter_space(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  490. lv_obj_set_style_text_line_space(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  491. lv_obj_set_style_text_align(ui->screen_label_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  492. lv_obj_set_style_bg_opa(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  493. lv_obj_set_style_pad_top(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  494. lv_obj_set_style_pad_right(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  495. lv_obj_set_style_pad_bottom(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  496. lv_obj_set_style_pad_left(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  497. lv_obj_set_style_shadow_width(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  498. //Write codes screen_label_11
  499. ui->screen_label_11 = lv_label_create(ui->screen_cont_power_off);
  500. lv_obj_set_pos(ui->screen_label_11, 150, 218);
  501. lv_obj_set_size(ui->screen_label_11, 34, 32);
  502. lv_label_set_text(ui->screen_label_11, "");
  503. lv_label_set_long_mode(ui->screen_label_11, LV_LABEL_LONG_WRAP);
  504. //Write style for screen_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  505. lv_obj_set_style_border_width(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  506. lv_obj_set_style_radius(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  507. lv_obj_set_style_text_color(ui->screen_label_11, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  508. lv_obj_set_style_text_font(ui->screen_label_11, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  509. lv_obj_set_style_text_opa(ui->screen_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  510. lv_obj_set_style_text_letter_space(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  511. lv_obj_set_style_text_line_space(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  512. lv_obj_set_style_text_align(ui->screen_label_11, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  513. lv_obj_set_style_bg_opa(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  514. lv_obj_set_style_pad_top(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  515. lv_obj_set_style_pad_right(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  516. lv_obj_set_style_pad_bottom(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  517. lv_obj_set_style_pad_left(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  518. lv_obj_set_style_shadow_width(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  519. //Write codes screen_imgbtn_1
  520. ui->screen_imgbtn_1 = lv_imagebutton_create(ui->screen_cont_power_off);
  521. lv_obj_set_pos(ui->screen_imgbtn_1, 199, 279);
  522. lv_obj_set_size(ui->screen_imgbtn_1, 84, 84);
  523. lv_obj_add_flag(ui->screen_imgbtn_1, LV_OBJ_FLAG_CHECKABLE);
  524. lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  525. lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_PRESSED, &_swtich_RGB565A8_84x84, NULL, NULL);
  526. lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  527. ui->screen_imgbtn_1_label = lv_label_create(ui->screen_imgbtn_1);
  528. lv_label_set_text(ui->screen_imgbtn_1_label, "");
  529. lv_label_set_long_mode(ui->screen_imgbtn_1_label, LV_LABEL_LONG_WRAP);
  530. lv_obj_align(ui->screen_imgbtn_1_label, LV_ALIGN_CENTER, 0, 0);
  531. lv_obj_set_style_pad_all(ui->screen_imgbtn_1, 0, LV_STATE_DEFAULT);
  532. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  533. lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  534. lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  535. lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  536. lv_obj_set_style_text_align(ui->screen_imgbtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  537. lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  538. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  539. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  540. lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  541. lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  542. lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  543. lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  544. lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  545. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  546. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  547. lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  548. lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  549. lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  550. lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  551. lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  552. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  553. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  554. lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  555. //The custom code of screen.
  556. //Update current screen layout.
  557. lv_obj_update_layout(ui->screen);
  558. //Init events for screen.
  559. events_init_screen(ui);
  560. }