setup_scr_screen.c 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  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. #include "actions.h"
  16. #include "heatpump_controller.h"
  17. void setup_scr_screen(lv_ui *ui)
  18. {
  19. //Write codes screen
  20. ui->screen = lv_obj_create(NULL);
  21. lv_obj_set_size(ui->screen, 480, 480);
  22. lv_obj_set_scrollbar_mode(ui->screen, LV_SCROLLBAR_MODE_OFF);
  23. //Write style for screen, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  24. lv_obj_set_style_bg_opa(ui->screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  25. lv_obj_set_style_bg_color(ui->screen, lv_color_hex(0x060505), LV_PART_MAIN|LV_STATE_DEFAULT);
  26. lv_obj_set_style_bg_grad_dir(ui->screen, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  27. lv_obj_set_style_bg_image_src(ui->screen, &_187_RGB565A8_480x480_tresh, LV_PART_MAIN|LV_STATE_DEFAULT);
  28. lv_obj_set_style_bg_image_opa(ui->screen, 113, LV_PART_MAIN|LV_STATE_DEFAULT);
  29. lv_obj_set_style_bg_image_recolor_opa(ui->screen, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  30. //Write codes screen_cont_power_on
  31. ui->screen_cont_power_on = lv_obj_create(ui->screen);
  32. lv_obj_set_pos(ui->screen_cont_power_on, 0, 0);
  33. lv_obj_set_size(ui->screen_cont_power_on, 480, 480);
  34. lv_obj_set_scrollbar_mode(ui->screen_cont_power_on, LV_SCROLLBAR_MODE_OFF);
  35. lv_obj_add_flag(ui->screen_cont_power_on, LV_OBJ_FLAG_HIDDEN);
  36. //Write style for screen_cont_power_on, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  37. lv_obj_set_style_border_width(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  38. lv_obj_set_style_radius(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  39. lv_obj_set_style_bg_opa(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  40. lv_obj_set_style_pad_top(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  41. lv_obj_set_style_pad_bottom(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  42. lv_obj_set_style_pad_left(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  43. lv_obj_set_style_pad_right(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  44. lv_obj_set_style_shadow_width(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  45. //Write codes screen_arc_temp
  46. ui->screen_arc_temp = lv_arc_create(ui->screen_cont_power_on);
  47. lv_obj_set_pos(ui->screen_arc_temp, 73, 51);
  48. lv_obj_set_size(ui->screen_arc_temp, 340, 340);
  49. lv_obj_remove_flag(ui->screen_arc_temp, LV_OBJ_FLAG_GESTURE_BUBBLE);
  50. lv_arc_set_mode(ui->screen_arc_temp, LV_ARC_MODE_NORMAL);
  51. lv_arc_set_range(ui->screen_arc_temp, 7, 60);
  52. lv_arc_set_bg_angles(ui->screen_arc_temp, 150, 30);
  53. lv_arc_set_value(ui->screen_arc_temp, 12);
  54. lv_arc_set_rotation(ui->screen_arc_temp, 0);
  55. //Write style for screen_arc_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  56. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  57. lv_obj_set_style_border_width(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  58. lv_obj_set_style_arc_width(ui->screen_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  59. lv_obj_set_style_arc_opa(ui->screen_arc_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  60. lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x817878), LV_PART_MAIN|LV_STATE_DEFAULT);
  61. lv_obj_set_style_arc_rounded(ui->screen_arc_temp, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  62. lv_obj_set_style_radius(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  63. lv_obj_set_style_pad_top(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  64. lv_obj_set_style_pad_bottom(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  65. lv_obj_set_style_pad_left(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  66. lv_obj_set_style_pad_right(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  67. lv_obj_set_style_shadow_width(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  68. //Write style for screen_arc_temp, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  69. lv_obj_set_style_arc_width(ui->screen_arc_temp, 20, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  70. lv_obj_set_style_arc_opa(ui->screen_arc_temp, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  71. lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x2FCADA), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  72. lv_obj_set_style_arc_rounded(ui->screen_arc_temp, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  73. //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  74. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  75. lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_DEFAULT);
  76. //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_FOCUSED.
  77. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 141, LV_PART_KNOB|LV_STATE_FOCUSED);
  78. lv_obj_set_style_bg_color(ui->screen_arc_temp, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_FOCUSED);
  79. lv_obj_set_style_bg_grad_dir(ui->screen_arc_temp, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_FOCUSED);
  80. lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_FOCUSED);
  81. //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DISABLED.
  82. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 255, LV_PART_KNOB|LV_STATE_DISABLED);
  83. lv_obj_set_style_bg_color(ui->screen_arc_temp, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_DISABLED);
  84. lv_obj_set_style_bg_grad_dir(ui->screen_arc_temp, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DISABLED);
  85. lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_DISABLED);
  86. //Write codes screen_label_6
  87. ui->screen_label_6 = lv_label_create(ui->screen_cont_power_on);
  88. lv_obj_set_pos(ui->screen_label_6, 255, 256);
  89. lv_obj_set_size(ui->screen_label_6, 71, 22);
  90. lv_label_set_text(ui->screen_label_6, "°C");
  91. lv_label_set_long_mode(ui->screen_label_6, LV_LABEL_LONG_WRAP);
  92. //Write style for screen_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  93. lv_obj_set_style_border_width(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  94. lv_obj_set_style_radius(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  95. lv_obj_set_style_text_color(ui->screen_label_6, lv_color_hex(0x2FCADA), LV_PART_MAIN|LV_STATE_DEFAULT);
  96. lv_obj_set_style_text_font(ui->screen_label_6, &lv_font_montserratMedium_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  97. lv_obj_set_style_text_opa(ui->screen_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  98. lv_obj_set_style_text_letter_space(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  99. lv_obj_set_style_text_line_space(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  100. lv_obj_set_style_text_align(ui->screen_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  101. lv_obj_set_style_bg_opa(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  102. lv_obj_set_style_pad_top(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  103. lv_obj_set_style_pad_right(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  104. lv_obj_set_style_pad_bottom(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  105. lv_obj_set_style_pad_left(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  106. lv_obj_set_style_shadow_width(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  107. //Write codes screen_label_1
  108. ui->screen_label_1 = lv_label_create(ui->screen_cont_power_on);
  109. lv_obj_set_pos(ui->screen_label_1, 147, 150);
  110. lv_obj_set_size(ui->screen_label_1, 34, 32);
  111. lv_label_set_text(ui->screen_label_1, "");
  112. lv_label_set_long_mode(ui->screen_label_1, LV_LABEL_LONG_WRAP);
  113. //Write style for screen_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  114. lv_obj_set_style_border_width(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  115. lv_obj_set_style_radius(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  116. lv_obj_set_style_text_color(ui->screen_label_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  117. lv_obj_set_style_text_font(ui->screen_label_1, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  118. lv_obj_set_style_text_opa(ui->screen_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  119. lv_obj_set_style_text_letter_space(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  120. lv_obj_set_style_text_line_space(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  121. lv_obj_set_style_text_align(ui->screen_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  122. lv_obj_set_style_bg_opa(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  123. lv_obj_set_style_pad_top(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  124. lv_obj_set_style_pad_right(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  125. lv_obj_set_style_pad_bottom(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  126. lv_obj_set_style_pad_left(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  127. lv_obj_set_style_shadow_width(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  128. //Write codes screen_label_2
  129. ui->screen_label_2 = lv_label_create(ui->screen_cont_power_on);
  130. lv_obj_set_pos(ui->screen_label_2, 242, 150);
  131. lv_obj_set_size(ui->screen_label_2, 34, 32);
  132. lv_label_set_text(ui->screen_label_2, "");
  133. lv_label_set_long_mode(ui->screen_label_2, LV_LABEL_LONG_WRAP);
  134. //Write style for screen_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  135. lv_obj_set_style_border_width(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  136. lv_obj_set_style_radius(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  137. lv_obj_set_style_text_color(ui->screen_label_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  138. lv_obj_set_style_text_font(ui->screen_label_2, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  139. lv_obj_set_style_text_opa(ui->screen_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  140. lv_obj_set_style_text_letter_space(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  141. lv_obj_set_style_text_line_space(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  142. lv_obj_set_style_text_align(ui->screen_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  143. lv_obj_set_style_bg_opa(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  144. lv_obj_set_style_pad_top(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  145. lv_obj_set_style_pad_right(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  146. lv_obj_set_style_pad_bottom(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  147. lv_obj_set_style_pad_left(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  148. lv_obj_set_style_shadow_width(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  149. //Write codes screen_lab_temp_low
  150. ui->screen_lab_temp_low = lv_label_create(ui->screen_cont_power_on);
  151. lv_obj_set_pos(ui->screen_lab_temp_low, 81, 322);
  152. lv_obj_set_size(ui->screen_lab_temp_low, 71, 20);
  153. lv_label_set_text(ui->screen_lab_temp_low, "7°C");
  154. lv_label_set_long_mode(ui->screen_lab_temp_low, LV_LABEL_LONG_WRAP);
  155. //Write style for screen_lab_temp_low, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  156. lv_obj_set_style_border_width(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  157. lv_obj_set_style_radius(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  158. lv_obj_set_style_text_color(ui->screen_lab_temp_low, lv_color_hex(0x9d9191), LV_PART_MAIN|LV_STATE_DEFAULT);
  159. lv_obj_set_style_text_font(ui->screen_lab_temp_low, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  160. lv_obj_set_style_text_opa(ui->screen_lab_temp_low, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  161. lv_obj_set_style_text_letter_space(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  162. lv_obj_set_style_text_line_space(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  163. lv_obj_set_style_text_align(ui->screen_lab_temp_low, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  164. lv_obj_set_style_bg_opa(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  165. lv_obj_set_style_pad_top(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  166. lv_obj_set_style_pad_right(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  167. lv_obj_set_style_pad_bottom(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  168. lv_obj_set_style_pad_left(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  169. lv_obj_set_style_shadow_width(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  170. //Write codes screen_lab_temp_high
  171. ui->screen_lab_temp_high = lv_label_create(ui->screen_cont_power_on);
  172. lv_obj_set_pos(ui->screen_lab_temp_high, 320, 322);
  173. lv_obj_set_size(ui->screen_lab_temp_high, 71, 20);
  174. lv_label_set_text(ui->screen_lab_temp_high, "22°C");
  175. lv_label_set_long_mode(ui->screen_lab_temp_high, LV_LABEL_LONG_WRAP);
  176. //Write style for screen_lab_temp_high, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  177. lv_obj_set_style_border_width(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  178. lv_obj_set_style_radius(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  179. lv_obj_set_style_text_color(ui->screen_lab_temp_high, lv_color_hex(0x9d9191), LV_PART_MAIN|LV_STATE_DEFAULT);
  180. lv_obj_set_style_text_font(ui->screen_lab_temp_high, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  181. lv_obj_set_style_text_opa(ui->screen_lab_temp_high, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  182. lv_obj_set_style_text_letter_space(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  183. lv_obj_set_style_text_line_space(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  184. lv_obj_set_style_text_align(ui->screen_lab_temp_high, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  185. lv_obj_set_style_bg_opa(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  186. lv_obj_set_style_pad_top(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  187. lv_obj_set_style_pad_right(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  188. lv_obj_set_style_pad_bottom(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  189. lv_obj_set_style_pad_left(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  190. lv_obj_set_style_shadow_width(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  191. //Write codes screen_lab_env_temp
  192. ui->screen_lab_env_temp = lv_label_create(ui->screen_cont_power_on);
  193. lv_obj_set_pos(ui->screen_lab_env_temp, 181, 155);
  194. lv_obj_set_size(ui->screen_lab_env_temp, 71, 20);
  195. lv_label_set_text(ui->screen_lab_env_temp, "26°C");
  196. lv_label_set_long_mode(ui->screen_lab_env_temp, LV_LABEL_LONG_WRAP);
  197. //Write style for screen_lab_env_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  198. lv_obj_set_style_border_width(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  199. lv_obj_set_style_radius(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  200. lv_obj_set_style_text_color(ui->screen_lab_env_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  201. lv_obj_set_style_text_font(ui->screen_lab_env_temp, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  202. lv_obj_set_style_text_opa(ui->screen_lab_env_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  203. lv_obj_set_style_text_letter_space(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  204. lv_obj_set_style_text_line_space(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  205. lv_obj_set_style_text_align(ui->screen_lab_env_temp, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  206. lv_obj_set_style_bg_opa(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  207. lv_obj_set_style_pad_top(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  208. lv_obj_set_style_pad_right(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  209. lv_obj_set_style_pad_bottom(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  210. lv_obj_set_style_pad_left(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  211. lv_obj_set_style_shadow_width(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  212. //Write codes screen_lab_env_hum
  213. ui->screen_lab_env_hum = lv_label_create(ui->screen_cont_power_on);
  214. lv_obj_set_pos(ui->screen_lab_env_hum, 279, 155);
  215. lv_obj_set_size(ui->screen_lab_env_hum, 71, 20);
  216. lv_label_set_text(ui->screen_lab_env_hum, "40%");
  217. lv_label_set_long_mode(ui->screen_lab_env_hum, LV_LABEL_LONG_WRAP);
  218. //Write style for screen_lab_env_hum, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  219. lv_obj_set_style_border_width(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  220. lv_obj_set_style_radius(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  221. lv_obj_set_style_text_color(ui->screen_lab_env_hum, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  222. lv_obj_set_style_text_font(ui->screen_lab_env_hum, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  223. lv_obj_set_style_text_opa(ui->screen_lab_env_hum, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  224. lv_obj_set_style_text_letter_space(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  225. lv_obj_set_style_text_line_space(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  226. lv_obj_set_style_text_align(ui->screen_lab_env_hum, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  227. lv_obj_set_style_bg_opa(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  228. lv_obj_set_style_pad_top(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  229. lv_obj_set_style_pad_right(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  230. lv_obj_set_style_pad_bottom(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  231. lv_obj_set_style_pad_left(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  232. lv_obj_set_style_shadow_width(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  233. //Write codes screen_lab_ac_temp
  234. ui->screen_lab_ac_temp = lv_label_create(ui->screen_cont_power_on);
  235. lv_obj_set_pos(ui->screen_lab_ac_temp, 165, 226);
  236. lv_obj_set_size(ui->screen_lab_ac_temp, 132, 72);
  237. lv_label_set_text(ui->screen_lab_ac_temp, "12");
  238. lv_label_set_long_mode(ui->screen_lab_ac_temp, LV_LABEL_LONG_WRAP);
  239. //Write style for screen_lab_ac_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  240. lv_obj_set_style_border_width(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  241. lv_obj_set_style_radius(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  242. lv_obj_set_style_text_color(ui->screen_lab_ac_temp, lv_color_hex(0x2FCADA), LV_PART_MAIN|LV_STATE_DEFAULT);
  243. lv_obj_set_style_text_font(ui->screen_lab_ac_temp, &lv_font_PuHui_ExtraBold_60, LV_PART_MAIN|LV_STATE_DEFAULT);
  244. lv_obj_set_style_text_opa(ui->screen_lab_ac_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  245. lv_obj_set_style_text_letter_space(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  246. lv_obj_set_style_text_line_space(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  247. lv_obj_set_style_text_align(ui->screen_lab_ac_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  248. lv_obj_set_style_bg_opa(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  249. lv_obj_set_style_pad_top(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  250. lv_obj_set_style_pad_right(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  251. lv_obj_set_style_pad_bottom(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  252. lv_obj_set_style_pad_left(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  253. lv_obj_set_style_shadow_width(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  254. //Write codes screen_ib_power
  255. ui->screen_ib_power = lv_imagebutton_create(ui->screen_cont_power_on);
  256. lv_obj_set_pos(ui->screen_ib_power, 200, 387);
  257. lv_obj_set_size(ui->screen_ib_power, 84, 84);
  258. lv_obj_add_flag(ui->screen_ib_power, LV_OBJ_FLAG_CHECKABLE);
  259. lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  260. lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_PRESSED, &_swtich_RGB565A8_84x84, NULL, NULL);
  261. lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  262. ui->screen_ib_power_label = lv_label_create(ui->screen_ib_power);
  263. lv_label_set_text(ui->screen_ib_power_label, "");
  264. lv_label_set_long_mode(ui->screen_ib_power_label, LV_LABEL_LONG_WRAP);
  265. lv_obj_align(ui->screen_ib_power_label, LV_ALIGN_CENTER, 0, 0);
  266. lv_obj_set_style_pad_all(ui->screen_ib_power, 0, LV_STATE_DEFAULT);
  267. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  268. lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  269. lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  270. lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  271. lv_obj_set_style_text_align(ui->screen_ib_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  272. lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  273. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  274. lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  275. lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  276. lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  277. lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  278. lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  279. lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  280. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  281. lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  282. lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  283. lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  284. lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  285. lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  286. lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  287. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  288. lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  289. lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  290. //Write codes screen_ib_heat
  291. ui->screen_ib_heat = lv_imagebutton_create(ui->screen_cont_power_on);
  292. lv_obj_set_pos(ui->screen_ib_heat, 363, 417);
  293. lv_obj_set_size(ui->screen_ib_heat, 48, 48);
  294. lv_obj_add_flag(ui->screen_ib_heat, LV_OBJ_FLAG_CHECKABLE);
  295. lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_RELEASED, &_ac_mode_heat_RGB565A8_48x48, NULL, NULL);
  296. lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_PRESSED, &_ac_mode_heat_sel_RGB565A8_48x48, NULL, NULL);
  297. lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_ac_mode_heat_sel_RGB565A8_48x48, NULL, NULL);
  298. ui->screen_ib_heat_label = lv_label_create(ui->screen_ib_heat);
  299. lv_label_set_text(ui->screen_ib_heat_label, "");
  300. lv_label_set_long_mode(ui->screen_ib_heat_label, LV_LABEL_LONG_WRAP);
  301. lv_obj_align(ui->screen_ib_heat_label, LV_ALIGN_CENTER, 0, 0);
  302. lv_obj_set_style_pad_all(ui->screen_ib_heat, 0, LV_STATE_DEFAULT);
  303. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  304. lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  305. lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  306. lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  307. lv_obj_set_style_text_align(ui->screen_ib_heat, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  308. lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  309. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  310. lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  311. lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  312. lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  313. lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  314. lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  315. lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  316. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  317. lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  318. lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  319. lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  320. lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  321. lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  322. lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  323. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  324. lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  325. lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  326. //Write codes screen_ib_cool
  327. ui->screen_ib_cool = lv_imagebutton_create(ui->screen_cont_power_on);
  328. lv_obj_set_pos(ui->screen_ib_cool, 73, 417);
  329. lv_obj_set_size(ui->screen_ib_cool, 48, 48);
  330. lv_obj_add_flag(ui->screen_ib_cool, LV_OBJ_FLAG_CHECKABLE);
  331. lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_RELEASED, &_ac_mode_cool_RGB565A8_48x48, NULL, NULL);
  332. lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_PRESSED, &_ac_mode_cool_sel_RGB565A8_48x48, NULL, NULL);
  333. lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_ac_mode_cool_sel_RGB565A8_48x48, NULL, NULL);
  334. ui->screen_ib_cool_label = lv_label_create(ui->screen_ib_cool);
  335. lv_label_set_text(ui->screen_ib_cool_label, "");
  336. lv_label_set_long_mode(ui->screen_ib_cool_label, LV_LABEL_LONG_WRAP);
  337. lv_obj_align(ui->screen_ib_cool_label, LV_ALIGN_CENTER, 0, 0);
  338. lv_obj_set_style_pad_all(ui->screen_ib_cool, 0, LV_STATE_DEFAULT);
  339. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  340. lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  341. lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  342. lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  343. lv_obj_set_style_text_align(ui->screen_ib_cool, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  344. lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  345. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  346. lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  347. lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  348. lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  349. lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  350. lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  351. lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  352. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  353. lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  354. lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  355. lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  356. lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  357. lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  358. lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  359. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  360. lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  361. lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  362. //Write codes screen_lab_mode
  363. ui->screen_lab_mode = lv_label_create(ui->screen_cont_power_on);
  364. lv_obj_set_pos(ui->screen_lab_mode, 188, 317);
  365. lv_obj_set_size(ui->screen_lab_mode, 100, 19);
  366. lv_label_set_text(ui->screen_lab_mode, "制冷热");
  367. lv_label_set_long_mode(ui->screen_lab_mode, LV_LABEL_LONG_WRAP);
  368. //Write style for screen_lab_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  369. lv_obj_set_style_border_width(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  370. lv_obj_set_style_radius(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  371. lv_obj_set_style_text_color(ui->screen_lab_mode, lv_color_hex(0x989696), LV_PART_MAIN|LV_STATE_DEFAULT);
  372. lv_obj_set_style_text_font(ui->screen_lab_mode, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  373. lv_obj_set_style_text_opa(ui->screen_lab_mode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  374. lv_obj_set_style_text_letter_space(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  375. lv_obj_set_style_text_line_space(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  376. lv_obj_set_style_text_align(ui->screen_lab_mode, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  377. lv_obj_set_style_bg_opa(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  378. lv_obj_set_style_pad_top(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  379. lv_obj_set_style_pad_right(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  380. lv_obj_set_style_pad_bottom(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  381. lv_obj_set_style_pad_left(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  382. lv_obj_set_style_shadow_width(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  383. //Write codes screen_label_12
  384. ui->screen_label_12 = lv_label_create(ui->screen_cont_power_on);
  385. lv_obj_set_pos(ui->screen_label_12, 188, 203);
  386. lv_obj_set_size(ui->screen_label_12, 100, 19);
  387. lv_label_set_text(ui->screen_label_12, "设置水温");
  388. lv_label_set_long_mode(ui->screen_label_12, LV_LABEL_LONG_WRAP);
  389. //Write style for screen_label_12, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  390. lv_obj_set_style_border_width(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  391. lv_obj_set_style_radius(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  392. lv_obj_set_style_text_color(ui->screen_label_12, lv_color_hex(0x989696), LV_PART_MAIN|LV_STATE_DEFAULT);
  393. lv_obj_set_style_text_font(ui->screen_label_12, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  394. lv_obj_set_style_text_opa(ui->screen_label_12, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  395. lv_obj_set_style_text_letter_space(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  396. lv_obj_set_style_text_line_space(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  397. lv_obj_set_style_text_align(ui->screen_label_12, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  398. lv_obj_set_style_bg_opa(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  399. lv_obj_set_style_pad_top(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  400. lv_obj_set_style_pad_right(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  401. lv_obj_set_style_pad_bottom(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  402. lv_obj_set_style_pad_left(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  403. lv_obj_set_style_shadow_width(ui->screen_label_12, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  404. //Write codes screen_lab_in_temp
  405. ui->screen_lab_in_temp = lv_label_create(ui->screen_cont_power_on);
  406. lv_obj_set_pos(ui->screen_lab_in_temp, 327, 18);
  407. lv_obj_set_size(ui->screen_lab_in_temp, 45, 20);
  408. lv_label_set_text(ui->screen_lab_in_temp, "26°C");
  409. lv_label_set_long_mode(ui->screen_lab_in_temp, LV_LABEL_LONG_WRAP);
  410. //Write style for screen_lab_in_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  411. lv_obj_set_style_border_width(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  412. lv_obj_set_style_radius(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  413. lv_obj_set_style_text_color(ui->screen_lab_in_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  414. lv_obj_set_style_text_font(ui->screen_lab_in_temp, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  415. lv_obj_set_style_text_opa(ui->screen_lab_in_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  416. lv_obj_set_style_text_letter_space(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  417. lv_obj_set_style_text_line_space(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  418. lv_obj_set_style_text_align(ui->screen_lab_in_temp, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  419. lv_obj_set_style_bg_opa(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  420. lv_obj_set_style_pad_top(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  421. lv_obj_set_style_pad_right(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  422. lv_obj_set_style_pad_bottom(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  423. lv_obj_set_style_pad_left(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  424. lv_obj_set_style_shadow_width(ui->screen_lab_in_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  425. //Write codes screen_label_13
  426. ui->screen_label_13 = lv_label_create(ui->screen_cont_power_on);
  427. lv_obj_set_pos(ui->screen_label_13, 284, 4);
  428. lv_obj_set_size(ui->screen_label_13, 36, 33);
  429. lv_label_set_text(ui->screen_label_13, "");
  430. lv_label_set_long_mode(ui->screen_label_13, LV_LABEL_LONG_WRAP);
  431. //Write style for screen_label_13, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  432. lv_obj_set_style_border_width(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  433. lv_obj_set_style_radius(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  434. lv_obj_set_style_text_color(ui->screen_label_13, lv_color_hex(0xf9dd00), LV_PART_MAIN|LV_STATE_DEFAULT);
  435. lv_obj_set_style_text_font(ui->screen_label_13, &lv_font_iconfont_36, LV_PART_MAIN|LV_STATE_DEFAULT);
  436. lv_obj_set_style_text_opa(ui->screen_label_13, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  437. lv_obj_set_style_text_letter_space(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  438. lv_obj_set_style_text_line_space(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  439. lv_obj_set_style_text_align(ui->screen_label_13, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  440. lv_obj_set_style_bg_opa(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  441. lv_obj_set_style_pad_top(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  442. lv_obj_set_style_pad_right(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  443. lv_obj_set_style_pad_bottom(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  444. lv_obj_set_style_pad_left(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  445. lv_obj_set_style_shadow_width(ui->screen_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  446. //Write codes screen_lab_out_temp
  447. ui->screen_lab_out_temp = lv_label_create(ui->screen_cont_power_on);
  448. lv_obj_set_pos(ui->screen_lab_out_temp, 421, 18);
  449. lv_obj_set_size(ui->screen_lab_out_temp, 50, 20);
  450. lv_label_set_text(ui->screen_lab_out_temp, "26°C");
  451. lv_label_set_long_mode(ui->screen_lab_out_temp, LV_LABEL_LONG_WRAP);
  452. //Write style for screen_lab_out_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  453. lv_obj_set_style_border_width(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  454. lv_obj_set_style_radius(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  455. lv_obj_set_style_text_color(ui->screen_lab_out_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  456. lv_obj_set_style_text_font(ui->screen_lab_out_temp, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  457. lv_obj_set_style_text_opa(ui->screen_lab_out_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  458. lv_obj_set_style_text_letter_space(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  459. lv_obj_set_style_text_line_space(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  460. lv_obj_set_style_text_align(ui->screen_lab_out_temp, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  461. lv_obj_set_style_bg_opa(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  462. lv_obj_set_style_pad_top(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  463. lv_obj_set_style_pad_right(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  464. lv_obj_set_style_pad_bottom(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  465. lv_obj_set_style_pad_left(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  466. lv_obj_set_style_shadow_width(ui->screen_lab_out_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  467. //Write codes screen_label_15
  468. ui->screen_label_15 = lv_label_create(ui->screen_cont_power_on);
  469. lv_obj_set_pos(ui->screen_label_15, 375, 4);
  470. lv_obj_set_size(ui->screen_label_15, 40, 34);
  471. lv_label_set_text(ui->screen_label_15, "");
  472. lv_label_set_long_mode(ui->screen_label_15, LV_LABEL_LONG_WRAP);
  473. //Write style for screen_label_15, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  474. lv_obj_set_style_border_width(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  475. lv_obj_set_style_radius(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  476. lv_obj_set_style_text_color(ui->screen_label_15, lv_color_hex(0x44cdfd), LV_PART_MAIN|LV_STATE_DEFAULT);
  477. lv_obj_set_style_text_font(ui->screen_label_15, &lv_font_iconfont_36, LV_PART_MAIN|LV_STATE_DEFAULT);
  478. lv_obj_set_style_text_opa(ui->screen_label_15, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  479. lv_obj_set_style_text_letter_space(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  480. lv_obj_set_style_text_line_space(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  481. lv_obj_set_style_text_align(ui->screen_label_15, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  482. lv_obj_set_style_bg_opa(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  483. lv_obj_set_style_pad_top(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  484. lv_obj_set_style_pad_right(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  485. lv_obj_set_style_pad_bottom(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  486. lv_obj_set_style_pad_left(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  487. lv_obj_set_style_shadow_width(ui->screen_label_15, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  488. //Write codes screen_label_16
  489. ui->screen_label_16 = lv_label_create(ui->screen_cont_power_on);
  490. lv_obj_set_pos(ui->screen_label_16, 188, 117);
  491. lv_obj_set_size(ui->screen_label_16, 100, 19);
  492. lv_label_set_text(ui->screen_label_16, "室内环境");
  493. lv_label_set_long_mode(ui->screen_label_16, LV_LABEL_LONG_WRAP);
  494. //Write style for screen_label_16, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  495. lv_obj_set_style_border_width(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  496. lv_obj_set_style_radius(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  497. lv_obj_set_style_text_color(ui->screen_label_16, lv_color_hex(0x989696), LV_PART_MAIN|LV_STATE_DEFAULT);
  498. lv_obj_set_style_text_font(ui->screen_label_16, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  499. lv_obj_set_style_text_opa(ui->screen_label_16, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  500. lv_obj_set_style_text_letter_space(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  501. lv_obj_set_style_text_line_space(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  502. lv_obj_set_style_text_align(ui->screen_label_16, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  503. lv_obj_set_style_bg_opa(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  504. lv_obj_set_style_pad_top(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  505. lv_obj_set_style_pad_right(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  506. lv_obj_set_style_pad_bottom(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  507. lv_obj_set_style_pad_left(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  508. lv_obj_set_style_shadow_width(ui->screen_label_16, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  509. //Write codes screen_cont_power_off
  510. ui->screen_cont_power_off = lv_obj_create(ui->screen);
  511. lv_obj_set_pos(ui->screen_cont_power_off, 0, 0);
  512. lv_obj_set_size(ui->screen_cont_power_off, 480, 480);
  513. lv_obj_set_scrollbar_mode(ui->screen_cont_power_off, LV_SCROLLBAR_MODE_OFF);
  514. lv_obj_add_flag(ui->screen_cont_power_off, LV_OBJ_FLAG_HIDDEN);
  515. lv_obj_add_flag(ui->screen_cont_power_off, LV_OBJ_FLAG_HIDDEN);
  516. //Write style for screen_cont_power_off, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  517. lv_obj_set_style_border_width(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  518. lv_obj_set_style_radius(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  519. lv_obj_set_style_bg_opa(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  520. lv_obj_set_style_pad_top(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  521. lv_obj_set_style_pad_bottom(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  522. lv_obj_set_style_pad_left(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  523. lv_obj_set_style_pad_right(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  524. lv_obj_set_style_shadow_width(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  525. //Write codes screen_lab_env_hum_2
  526. ui->screen_lab_env_hum_2 = lv_label_create(ui->screen_cont_power_off);
  527. lv_obj_set_pos(ui->screen_lab_env_hum_2, 300, 193);
  528. lv_obj_set_size(ui->screen_lab_env_hum_2, 71, 20);
  529. lv_label_set_text(ui->screen_lab_env_hum_2, "40%");
  530. lv_label_set_long_mode(ui->screen_lab_env_hum_2, LV_LABEL_LONG_WRAP);
  531. //Write style for screen_lab_env_hum_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  532. lv_obj_set_style_border_width(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  533. lv_obj_set_style_radius(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  534. lv_obj_set_style_text_color(ui->screen_lab_env_hum_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  535. lv_obj_set_style_text_font(ui->screen_lab_env_hum_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  536. lv_obj_set_style_text_opa(ui->screen_lab_env_hum_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  537. lv_obj_set_style_text_letter_space(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  538. lv_obj_set_style_text_line_space(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  539. lv_obj_set_style_text_align(ui->screen_lab_env_hum_2, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  540. lv_obj_set_style_bg_opa(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  541. lv_obj_set_style_pad_top(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  542. lv_obj_set_style_pad_right(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  543. lv_obj_set_style_pad_bottom(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  544. lv_obj_set_style_pad_left(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  545. lv_obj_set_style_shadow_width(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  546. //Write codes screen_lab_env_temp_2
  547. ui->screen_lab_env_temp_2 = lv_label_create(ui->screen_cont_power_off);
  548. lv_obj_set_pos(ui->screen_lab_env_temp_2, 184, 193);
  549. lv_obj_set_size(ui->screen_lab_env_temp_2, 71, 20);
  550. lv_label_set_text(ui->screen_lab_env_temp_2, "26°C");
  551. lv_label_set_long_mode(ui->screen_lab_env_temp_2, LV_LABEL_LONG_WRAP);
  552. //Write style for screen_lab_env_temp_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  553. lv_obj_set_style_border_width(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  554. lv_obj_set_style_radius(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  555. lv_obj_set_style_text_color(ui->screen_lab_env_temp_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  556. lv_obj_set_style_text_font(ui->screen_lab_env_temp_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  557. lv_obj_set_style_text_opa(ui->screen_lab_env_temp_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  558. lv_obj_set_style_text_letter_space(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  559. lv_obj_set_style_text_line_space(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  560. lv_obj_set_style_text_align(ui->screen_lab_env_temp_2, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  561. lv_obj_set_style_bg_opa(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  562. lv_obj_set_style_pad_top(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  563. lv_obj_set_style_pad_right(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  564. lv_obj_set_style_pad_bottom(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  565. lv_obj_set_style_pad_left(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  566. lv_obj_set_style_shadow_width(ui->screen_lab_env_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  567. //Write codes screen_label_10
  568. ui->screen_label_10 = lv_label_create(ui->screen_cont_power_off);
  569. lv_obj_set_pos(ui->screen_label_10, 262, 186);
  570. lv_obj_set_size(ui->screen_label_10, 34, 32);
  571. lv_label_set_text(ui->screen_label_10, "");
  572. lv_label_set_long_mode(ui->screen_label_10, LV_LABEL_LONG_WRAP);
  573. //Write style for screen_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  574. lv_obj_set_style_border_width(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  575. lv_obj_set_style_radius(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  576. lv_obj_set_style_text_color(ui->screen_label_10, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  577. lv_obj_set_style_text_font(ui->screen_label_10, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  578. lv_obj_set_style_text_opa(ui->screen_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  579. lv_obj_set_style_text_letter_space(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  580. lv_obj_set_style_text_line_space(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  581. lv_obj_set_style_text_align(ui->screen_label_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  582. lv_obj_set_style_bg_opa(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  583. lv_obj_set_style_pad_top(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  584. lv_obj_set_style_pad_right(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  585. lv_obj_set_style_pad_bottom(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  586. lv_obj_set_style_pad_left(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  587. lv_obj_set_style_shadow_width(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  588. //Write codes screen_label_11
  589. ui->screen_label_11 = lv_label_create(ui->screen_cont_power_off);
  590. lv_obj_set_pos(ui->screen_label_11, 150, 186);
  591. lv_obj_set_size(ui->screen_label_11, 34, 32);
  592. lv_label_set_text(ui->screen_label_11, "");
  593. lv_label_set_long_mode(ui->screen_label_11, LV_LABEL_LONG_WRAP);
  594. //Write style for screen_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  595. lv_obj_set_style_border_width(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  596. lv_obj_set_style_radius(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  597. lv_obj_set_style_text_color(ui->screen_label_11, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  598. lv_obj_set_style_text_font(ui->screen_label_11, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  599. lv_obj_set_style_text_opa(ui->screen_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  600. lv_obj_set_style_text_letter_space(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  601. lv_obj_set_style_text_line_space(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  602. lv_obj_set_style_text_align(ui->screen_label_11, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  603. lv_obj_set_style_bg_opa(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  604. lv_obj_set_style_pad_top(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  605. lv_obj_set_style_pad_right(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  606. lv_obj_set_style_pad_bottom(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  607. lv_obj_set_style_pad_left(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  608. lv_obj_set_style_shadow_width(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  609. //Write codes screen_imgbtn_1
  610. ui->screen_imgbtn_1 = lv_imagebutton_create(ui->screen_cont_power_off);
  611. lv_obj_set_pos(ui->screen_imgbtn_1, 199, 261);
  612. lv_obj_set_size(ui->screen_imgbtn_1, 84, 84);
  613. lv_obj_add_flag(ui->screen_imgbtn_1, LV_OBJ_FLAG_CHECKABLE);
  614. lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  615. lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_PRESSED, &_swtich_RGB565A8_84x84, NULL, NULL);
  616. lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  617. ui->screen_imgbtn_1_label = lv_label_create(ui->screen_imgbtn_1);
  618. lv_label_set_text(ui->screen_imgbtn_1_label, "");
  619. lv_label_set_long_mode(ui->screen_imgbtn_1_label, LV_LABEL_LONG_WRAP);
  620. lv_obj_align(ui->screen_imgbtn_1_label, LV_ALIGN_CENTER, 0, 0);
  621. lv_obj_set_style_pad_all(ui->screen_imgbtn_1, 0, LV_STATE_DEFAULT);
  622. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  623. lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  624. lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  625. lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  626. lv_obj_set_style_text_align(ui->screen_imgbtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  627. lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  628. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  629. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  630. lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  631. lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  632. lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  633. lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  634. lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  635. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  636. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  637. lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  638. lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  639. lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  640. lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  641. lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  642. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  643. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  644. lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  645. //Write codes screen_img_wifi
  646. ui->screen_img_wifi = lv_image_create(ui->screen);
  647. lv_obj_set_pos(ui->screen_img_wifi, 17, 8);
  648. lv_obj_set_size(ui->screen_img_wifi, 32, 32);
  649. lv_obj_add_flag(ui->screen_img_wifi, LV_OBJ_FLAG_HIDDEN);
  650. lv_obj_add_flag(ui->screen_img_wifi, LV_OBJ_FLAG_CLICKABLE);
  651. lv_image_set_src(ui->screen_img_wifi, &_wifi_stron_RGB565A8_32x32);
  652. lv_image_set_pivot(ui->screen_img_wifi, 50,50);
  653. lv_image_set_rotation(ui->screen_img_wifi, 0);
  654. //Write style for screen_img_wifi, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  655. lv_obj_set_style_image_recolor_opa(ui->screen_img_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  656. lv_obj_set_style_image_opa(ui->screen_img_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  657. //Write codes screen_cont_icons
  658. ui->screen_cont_icons = lv_obj_create(ui->screen);
  659. lv_obj_set_pos(ui->screen_cont_icons, 51, 8);
  660. lv_obj_set_size(ui->screen_cont_icons, 257, 34);
  661. lv_obj_set_scrollbar_mode(ui->screen_cont_icons, LV_SCROLLBAR_MODE_OFF);
  662. lv_obj_remove_flag(ui->screen_cont_icons, LV_OBJ_FLAG_SCROLLABLE);
  663. //Write style for screen_cont_icons, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  664. lv_obj_set_style_border_width(ui->screen_cont_icons, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  665. lv_obj_set_style_radius(ui->screen_cont_icons, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  666. lv_obj_set_style_bg_opa(ui->screen_cont_icons, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  667. lv_obj_set_style_pad_top(ui->screen_cont_icons, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  668. lv_obj_set_style_pad_bottom(ui->screen_cont_icons, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  669. lv_obj_set_style_pad_left(ui->screen_cont_icons, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  670. lv_obj_set_style_pad_right(ui->screen_cont_icons, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  671. lv_obj_set_style_shadow_width(ui->screen_cont_icons, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  672. //Write codes screen_lab_icon_cloud
  673. ui->screen_lab_icon_cloud = lv_label_create(ui->screen_cont_icons);
  674. lv_obj_set_pos(ui->screen_lab_icon_cloud, 7, 6);
  675. lv_obj_set_size(ui->screen_lab_icon_cloud, 25, 23);
  676. lv_obj_add_flag(ui->screen_lab_icon_cloud, LV_OBJ_FLAG_HIDDEN);
  677. lv_label_set_text(ui->screen_lab_icon_cloud, "");
  678. lv_label_set_long_mode(ui->screen_lab_icon_cloud, LV_LABEL_LONG_WRAP);
  679. //Write style for screen_lab_icon_cloud, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  680. lv_obj_set_style_border_width(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  681. lv_obj_set_style_radius(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  682. lv_obj_set_style_text_color(ui->screen_lab_icon_cloud, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  683. lv_obj_set_style_text_font(ui->screen_lab_icon_cloud, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  684. lv_obj_set_style_text_opa(ui->screen_lab_icon_cloud, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  685. lv_obj_set_style_text_letter_space(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  686. lv_obj_set_style_text_line_space(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  687. lv_obj_set_style_text_align(ui->screen_lab_icon_cloud, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  688. lv_obj_set_style_bg_opa(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  689. lv_obj_set_style_pad_top(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  690. lv_obj_set_style_pad_right(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  691. lv_obj_set_style_pad_bottom(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  692. lv_obj_set_style_pad_left(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  693. lv_obj_set_style_shadow_width(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  694. //Write codes screen_lab_icon_err
  695. ui->screen_lab_icon_err = lv_label_create(ui->screen_cont_icons);
  696. lv_obj_set_pos(ui->screen_lab_icon_err, 36, 6);
  697. lv_obj_set_size(ui->screen_lab_icon_err, 26, 26);
  698. lv_obj_add_flag(ui->screen_lab_icon_err, LV_OBJ_FLAG_HIDDEN);
  699. lv_label_set_text(ui->screen_lab_icon_err, "");
  700. lv_label_set_long_mode(ui->screen_lab_icon_err, LV_LABEL_LONG_WRAP);
  701. //Write style for screen_lab_icon_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  702. lv_obj_set_style_border_width(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  703. lv_obj_set_style_radius(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  704. lv_obj_set_style_text_color(ui->screen_lab_icon_err, lv_color_hex(0xff0028), LV_PART_MAIN|LV_STATE_DEFAULT);
  705. lv_obj_set_style_text_font(ui->screen_lab_icon_err, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  706. lv_obj_set_style_text_opa(ui->screen_lab_icon_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  707. lv_obj_set_style_text_letter_space(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  708. lv_obj_set_style_text_line_space(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  709. lv_obj_set_style_text_align(ui->screen_lab_icon_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  710. lv_obj_set_style_bg_opa(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  711. lv_obj_set_style_pad_top(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  712. lv_obj_set_style_pad_right(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  713. lv_obj_set_style_pad_bottom(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  714. lv_obj_set_style_pad_left(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  715. lv_obj_set_style_shadow_width(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  716. //Write codes screen_lab_icon_485
  717. ui->screen_lab_icon_485 = lv_label_create(ui->screen_cont_icons);
  718. lv_obj_set_pos(ui->screen_lab_icon_485, 66, 6);
  719. lv_obj_set_size(ui->screen_lab_icon_485, 26, 26);
  720. lv_obj_add_flag(ui->screen_lab_icon_485, LV_OBJ_FLAG_HIDDEN);
  721. lv_label_set_text(ui->screen_lab_icon_485, "");
  722. lv_label_set_long_mode(ui->screen_lab_icon_485, LV_LABEL_LONG_WRAP);
  723. //Write style for screen_lab_icon_485, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  724. lv_obj_set_style_border_width(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  725. lv_obj_set_style_radius(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  726. lv_obj_set_style_text_color(ui->screen_lab_icon_485, lv_color_hex(0xffc700), LV_PART_MAIN|LV_STATE_DEFAULT);
  727. lv_obj_set_style_text_font(ui->screen_lab_icon_485, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  728. lv_obj_set_style_text_opa(ui->screen_lab_icon_485, 253, LV_PART_MAIN|LV_STATE_DEFAULT);
  729. lv_obj_set_style_text_letter_space(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  730. lv_obj_set_style_text_line_space(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  731. lv_obj_set_style_text_align(ui->screen_lab_icon_485, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  732. lv_obj_set_style_bg_opa(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  733. lv_obj_set_style_pad_top(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  734. lv_obj_set_style_pad_right(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  735. lv_obj_set_style_pad_bottom(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  736. lv_obj_set_style_pad_left(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  737. lv_obj_set_style_shadow_width(ui->screen_lab_icon_485, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  738. //Write codes screen_lab_icon_linkage
  739. ui->screen_lab_icon_linkage = lv_label_create(ui->screen_cont_icons);
  740. lv_obj_set_pos(ui->screen_lab_icon_linkage, 96, 6);
  741. lv_obj_set_size(ui->screen_lab_icon_linkage, 26, 26);
  742. lv_obj_add_flag(ui->screen_lab_icon_linkage, LV_OBJ_FLAG_HIDDEN);
  743. lv_label_set_text(ui->screen_lab_icon_linkage, "");
  744. lv_label_set_long_mode(ui->screen_lab_icon_linkage, LV_LABEL_LONG_WRAP);
  745. //Write style for screen_lab_icon_linkage, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  746. lv_obj_set_style_border_width(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  747. lv_obj_set_style_radius(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  748. lv_obj_set_style_text_color(ui->screen_lab_icon_linkage, lv_color_hex(0x0bfffc), LV_PART_MAIN|LV_STATE_DEFAULT);
  749. lv_obj_set_style_text_font(ui->screen_lab_icon_linkage, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  750. lv_obj_set_style_text_opa(ui->screen_lab_icon_linkage, 253, LV_PART_MAIN|LV_STATE_DEFAULT);
  751. lv_obj_set_style_text_letter_space(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  752. lv_obj_set_style_text_line_space(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  753. lv_obj_set_style_text_align(ui->screen_lab_icon_linkage, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  754. lv_obj_set_style_bg_opa(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  755. lv_obj_set_style_pad_top(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  756. lv_obj_set_style_pad_right(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  757. lv_obj_set_style_pad_bottom(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  758. lv_obj_set_style_pad_left(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  759. lv_obj_set_style_shadow_width(ui->screen_lab_icon_linkage, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  760. //Write codes screen_cont_1
  761. ui->screen_cont_1 = lv_obj_create(ui->screen);
  762. lv_obj_set_pos(ui->screen_cont_1, 18, 46);
  763. lv_obj_set_size(ui->screen_cont_1, 447, 420);
  764. lv_obj_set_scrollbar_mode(ui->screen_cont_1, LV_SCROLLBAR_MODE_OFF);
  765. lv_obj_add_flag(ui->screen_cont_1, LV_OBJ_FLAG_HIDDEN);
  766. //Write style for screen_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  767. lv_obj_set_style_border_width(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  768. lv_obj_set_style_radius(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  769. lv_obj_set_style_bg_opa(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  770. lv_obj_set_style_pad_top(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  771. lv_obj_set_style_pad_bottom(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  772. lv_obj_set_style_pad_left(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  773. lv_obj_set_style_pad_right(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  774. lv_obj_set_style_shadow_width(ui->screen_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  775. //The custom code of screen.
  776. lv_obj_add_flag(ui->screen_arc_temp, LV_OBJ_FLAG_ADV_HITTEST);
  777. lv_obj_set_ext_click_area(ui->screen_arc_temp, 40);
  778. if(system_setting.allow_linkage)lv_obj_remove_flag(ui->screen_lab_icon_linkage, LV_OBJ_FLAG_HIDDEN);
  779. if(hp_controller.power == 1) {
  780. lv_obj_remove_flag(ui->screen_cont_power_on, LV_OBJ_FLAG_HIDDEN);
  781. lv_obj_add_flag(ui->screen_cont_power_off, LV_OBJ_FLAG_HIDDEN);
  782. } else {
  783. lv_obj_remove_flag(ui->screen_cont_power_off, LV_OBJ_FLAG_HIDDEN);
  784. lv_obj_add_flag(ui->screen_cont_power_on, LV_OBJ_FLAG_HIDDEN);
  785. }
  786. if(hp_controller.mode == MODE_COOL) {
  787. lv_obj_set_style_text_color(guider_ui.screen_lab_ac_temp, lv_color_hex(0x00d9ff), LV_PART_MAIN|LV_STATE_DEFAULT);
  788. lv_obj_set_style_text_color(guider_ui.screen_label_6, lv_color_hex(0x00d9ff), LV_PART_MAIN|LV_STATE_DEFAULT);
  789. lv_obj_set_style_arc_color(guider_ui.screen_arc_temp, lv_color_hex(0x00d9ff),
  790. LV_PART_INDICATOR | LV_STATE_DEFAULT);
  791. lv_arc_set_range(ui->screen_arc_temp, 7*2,22*2);
  792. lv_label_set_text_fmt(ui->screen_lab_ac_temp, "%d", hp_controller.cool_set_temp);
  793. lv_arc_set_value(guider_ui.screen_arc_temp, hp_controller.cool_set_temp * 2);
  794. lv_label_set_text_static(ui->screen_lab_mode, "制冷");
  795. lv_label_set_text_static(ui->screen_lab_temp_low, "7°C");
  796. lv_label_set_text_static(ui->screen_lab_temp_high, "22°C");
  797. lv_obj_add_state(ui->screen_ib_cool, LV_STATE_CHECKED);
  798. } else if(hp_controller.mode == MODE_HEAT) {
  799. lv_obj_set_style_text_color(guider_ui.screen_lab_ac_temp, lv_color_hex(0xff9700), LV_PART_MAIN|LV_STATE_DEFAULT);
  800. lv_obj_set_style_text_color(guider_ui.screen_label_6, lv_color_hex(0xff9700), LV_PART_MAIN|LV_STATE_DEFAULT);
  801. lv_obj_set_style_arc_color(guider_ui.screen_arc_temp, lv_color_hex(0xff9700),
  802. LV_PART_INDICATOR | LV_STATE_DEFAULT);
  803. lv_arc_set_range(ui->screen_arc_temp, 30*2,60*2);
  804. lv_arc_set_value(ui->screen_arc_temp, hp_controller.heat_set_temp * 2);
  805. lv_label_set_text_fmt(ui->screen_lab_ac_temp, "%d", hp_controller.heat_set_temp);
  806. lv_label_set_text_static(ui->screen_lab_mode, "制热");
  807. lv_label_set_text_static(ui->screen_lab_temp_low, "30°C");
  808. lv_label_set_text_static(ui->screen_lab_temp_high, "60°C");
  809. lv_obj_add_state(ui->screen_ib_heat, LV_STATE_CHECKED);
  810. }
  811. lv_obj_set_layout(ui->screen_cont_icons, LV_LAYOUT_FLEX);
  812. lv_obj_set_flex_flow(ui->screen_cont_icons, LV_FLEX_FLOW_ROW_WRAP);
  813. lv_obj_set_flex_align(ui->screen_cont_icons, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER);
  814. //Update current screen layout.
  815. lv_obj_update_layout(ui->screen);
  816. //Init events for screen.
  817. events_init_screen(ui);
  818. }