setup_scr_screen.c 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  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(0x1F1E23), 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, &_main_bg_RGB565A8_480x480, LV_PART_MAIN|LV_STATE_DEFAULT);
  28. lv_obj_set_style_bg_image_opa(ui->screen, 255, 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. //Write style for screen_cont_power_on, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  36. lv_obj_set_style_border_width(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  37. lv_obj_set_style_radius(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  38. lv_obj_set_style_bg_opa(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  39. lv_obj_set_style_pad_top(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  40. lv_obj_set_style_pad_right(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_shadow_width(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  44. //Write codes screen_arc_temp
  45. ui->screen_arc_temp = lv_arc_create(ui->screen_cont_power_on);
  46. lv_obj_set_pos(ui->screen_arc_temp, 73, 51);
  47. lv_obj_set_size(ui->screen_arc_temp, 340, 340);
  48. lv_arc_set_mode(ui->screen_arc_temp, LV_ARC_MODE_NORMAL);
  49. lv_arc_set_range(ui->screen_arc_temp, 0, 50);
  50. lv_arc_set_bg_angles(ui->screen_arc_temp, 150, 30);
  51. lv_arc_set_value(ui->screen_arc_temp, 26);
  52. lv_arc_set_rotation(ui->screen_arc_temp, 0);
  53. //Write style for screen_arc_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  54. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  55. lv_obj_set_style_border_width(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  56. lv_obj_set_style_arc_width(ui->screen_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  57. lv_obj_set_style_arc_opa(ui->screen_arc_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  58. lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x817878), LV_PART_MAIN|LV_STATE_DEFAULT);
  59. lv_obj_set_style_arc_rounded(ui->screen_arc_temp, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  60. lv_obj_set_style_radius(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  61. lv_obj_set_style_pad_top(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  62. lv_obj_set_style_pad_bottom(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  63. lv_obj_set_style_pad_left(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  64. lv_obj_set_style_pad_right(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  65. lv_obj_set_style_shadow_width(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  66. //Write style for screen_arc_temp, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  67. lv_obj_set_style_arc_width(ui->screen_arc_temp, 20, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  68. lv_obj_set_style_arc_opa(ui->screen_arc_temp, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  69. lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x00d9ff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  70. lv_obj_set_style_arc_rounded(ui->screen_arc_temp, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  71. //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  72. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  73. lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_DEFAULT);
  74. //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_FOCUSED.
  75. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 255, LV_PART_KNOB|LV_STATE_FOCUSED);
  76. lv_obj_set_style_bg_color(ui->screen_arc_temp, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_FOCUSED);
  77. lv_obj_set_style_bg_grad_dir(ui->screen_arc_temp, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_FOCUSED);
  78. lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_FOCUSED);
  79. //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DISABLED.
  80. lv_obj_set_style_bg_opa(ui->screen_arc_temp, 255, LV_PART_KNOB|LV_STATE_DISABLED);
  81. lv_obj_set_style_bg_color(ui->screen_arc_temp, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_DISABLED);
  82. lv_obj_set_style_bg_grad_dir(ui->screen_arc_temp, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DISABLED);
  83. lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_DISABLED);
  84. //Write codes screen_label_6
  85. ui->screen_label_6 = lv_label_create(ui->screen_cont_power_on);
  86. lv_obj_set_pos(ui->screen_label_6, 252, 238);
  87. lv_obj_set_size(ui->screen_label_6, 71, 22);
  88. lv_label_set_text(ui->screen_label_6, "°C");
  89. lv_label_set_long_mode(ui->screen_label_6, LV_LABEL_LONG_WRAP);
  90. //Write style for screen_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  91. lv_obj_set_style_border_width(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  92. lv_obj_set_style_radius(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  93. lv_obj_set_style_text_color(ui->screen_label_6, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  94. lv_obj_set_style_text_font(ui->screen_label_6, &lv_font_montserratMedium_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  95. lv_obj_set_style_text_opa(ui->screen_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  96. lv_obj_set_style_text_letter_space(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  97. lv_obj_set_style_text_line_space(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  98. lv_obj_set_style_text_align(ui->screen_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  99. lv_obj_set_style_bg_opa(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  100. lv_obj_set_style_pad_top(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  101. lv_obj_set_style_pad_right(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  102. lv_obj_set_style_pad_bottom(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  103. lv_obj_set_style_pad_left(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  104. lv_obj_set_style_shadow_width(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  105. //Write codes screen_label_1
  106. ui->screen_label_1 = lv_label_create(ui->screen_cont_power_on);
  107. lv_obj_set_pos(ui->screen_label_1, 147, 150);
  108. lv_obj_set_size(ui->screen_label_1, 34, 32);
  109. lv_label_set_text(ui->screen_label_1, "");
  110. lv_label_set_long_mode(ui->screen_label_1, LV_LABEL_LONG_WRAP);
  111. //Write style for screen_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  112. lv_obj_set_style_border_width(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  113. lv_obj_set_style_radius(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  114. lv_obj_set_style_text_color(ui->screen_label_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  115. lv_obj_set_style_text_font(ui->screen_label_1, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  116. lv_obj_set_style_text_opa(ui->screen_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  117. lv_obj_set_style_text_letter_space(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  118. lv_obj_set_style_text_line_space(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  119. lv_obj_set_style_text_align(ui->screen_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  120. lv_obj_set_style_bg_opa(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  121. lv_obj_set_style_pad_top(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  122. lv_obj_set_style_pad_right(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  123. lv_obj_set_style_pad_bottom(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  124. lv_obj_set_style_pad_left(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  125. lv_obj_set_style_shadow_width(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  126. //Write codes screen_label_2
  127. ui->screen_label_2 = lv_label_create(ui->screen_cont_power_on);
  128. lv_obj_set_pos(ui->screen_label_2, 242, 150);
  129. lv_obj_set_size(ui->screen_label_2, 34, 32);
  130. lv_label_set_text(ui->screen_label_2, "");
  131. lv_label_set_long_mode(ui->screen_label_2, LV_LABEL_LONG_WRAP);
  132. //Write style for screen_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  133. lv_obj_set_style_border_width(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  134. lv_obj_set_style_radius(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  135. lv_obj_set_style_text_color(ui->screen_label_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  136. lv_obj_set_style_text_font(ui->screen_label_2, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  137. lv_obj_set_style_text_opa(ui->screen_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  138. lv_obj_set_style_text_letter_space(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  139. lv_obj_set_style_text_line_space(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  140. lv_obj_set_style_text_align(ui->screen_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  141. lv_obj_set_style_bg_opa(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  142. lv_obj_set_style_pad_top(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  143. lv_obj_set_style_pad_right(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  144. lv_obj_set_style_pad_bottom(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  145. lv_obj_set_style_pad_left(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  146. lv_obj_set_style_shadow_width(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  147. //Write codes screen_lab_temp_low
  148. ui->screen_lab_temp_low = lv_label_create(ui->screen_cont_power_on);
  149. lv_obj_set_pos(ui->screen_lab_temp_low, 81, 328);
  150. lv_obj_set_size(ui->screen_lab_temp_low, 71, 20);
  151. lv_label_set_text(ui->screen_lab_temp_low, "0°C");
  152. lv_label_set_long_mode(ui->screen_lab_temp_low, LV_LABEL_LONG_WRAP);
  153. //Write style for screen_lab_temp_low, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  154. lv_obj_set_style_border_width(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  155. lv_obj_set_style_radius(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  156. lv_obj_set_style_text_color(ui->screen_lab_temp_low, lv_color_hex(0x9d9191), LV_PART_MAIN|LV_STATE_DEFAULT);
  157. lv_obj_set_style_text_font(ui->screen_lab_temp_low, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  158. lv_obj_set_style_text_opa(ui->screen_lab_temp_low, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  159. lv_obj_set_style_text_letter_space(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  160. lv_obj_set_style_text_line_space(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  161. lv_obj_set_style_text_align(ui->screen_lab_temp_low, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  162. lv_obj_set_style_bg_opa(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  163. lv_obj_set_style_pad_top(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  164. lv_obj_set_style_pad_right(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  165. lv_obj_set_style_pad_bottom(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  166. lv_obj_set_style_pad_left(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  167. lv_obj_set_style_shadow_width(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  168. //Write codes screen_lab_temp_high
  169. ui->screen_lab_temp_high = lv_label_create(ui->screen_cont_power_on);
  170. lv_obj_set_pos(ui->screen_lab_temp_high, 320, 328);
  171. lv_obj_set_size(ui->screen_lab_temp_high, 71, 20);
  172. lv_label_set_text(ui->screen_lab_temp_high, "50°C");
  173. lv_label_set_long_mode(ui->screen_lab_temp_high, LV_LABEL_LONG_WRAP);
  174. //Write style for screen_lab_temp_high, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  175. lv_obj_set_style_border_width(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  176. lv_obj_set_style_radius(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  177. lv_obj_set_style_text_color(ui->screen_lab_temp_high, lv_color_hex(0x9d9191), LV_PART_MAIN|LV_STATE_DEFAULT);
  178. lv_obj_set_style_text_font(ui->screen_lab_temp_high, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  179. lv_obj_set_style_text_opa(ui->screen_lab_temp_high, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  180. lv_obj_set_style_text_letter_space(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  181. lv_obj_set_style_text_line_space(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  182. lv_obj_set_style_text_align(ui->screen_lab_temp_high, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  183. lv_obj_set_style_bg_opa(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  184. lv_obj_set_style_pad_top(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  185. lv_obj_set_style_pad_right(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  186. lv_obj_set_style_pad_bottom(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  187. lv_obj_set_style_pad_left(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  188. lv_obj_set_style_shadow_width(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  189. //Write codes screen_lab_env_temp
  190. ui->screen_lab_env_temp = lv_label_create(ui->screen_cont_power_on);
  191. lv_obj_set_pos(ui->screen_lab_env_temp, 181, 155);
  192. lv_obj_set_size(ui->screen_lab_env_temp, 71, 20);
  193. lv_label_set_text(ui->screen_lab_env_temp, "26°C");
  194. lv_label_set_long_mode(ui->screen_lab_env_temp, LV_LABEL_LONG_WRAP);
  195. //Write style for screen_lab_env_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  196. lv_obj_set_style_border_width(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  197. lv_obj_set_style_radius(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  198. lv_obj_set_style_text_color(ui->screen_lab_env_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  199. lv_obj_set_style_text_font(ui->screen_lab_env_temp, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  200. lv_obj_set_style_text_opa(ui->screen_lab_env_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  201. lv_obj_set_style_text_letter_space(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  202. lv_obj_set_style_text_line_space(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  203. lv_obj_set_style_text_align(ui->screen_lab_env_temp, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  204. lv_obj_set_style_bg_opa(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  205. lv_obj_set_style_pad_top(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  206. lv_obj_set_style_pad_right(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  207. lv_obj_set_style_pad_bottom(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  208. lv_obj_set_style_pad_left(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  209. lv_obj_set_style_shadow_width(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  210. //Write codes screen_lab_env_hum
  211. ui->screen_lab_env_hum = lv_label_create(ui->screen_cont_power_on);
  212. lv_obj_set_pos(ui->screen_lab_env_hum, 279, 155);
  213. lv_obj_set_size(ui->screen_lab_env_hum, 71, 20);
  214. lv_label_set_text(ui->screen_lab_env_hum, "40%");
  215. lv_label_set_long_mode(ui->screen_lab_env_hum, LV_LABEL_LONG_WRAP);
  216. //Write style for screen_lab_env_hum, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  217. lv_obj_set_style_border_width(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  218. lv_obj_set_style_radius(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  219. lv_obj_set_style_text_color(ui->screen_lab_env_hum, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  220. lv_obj_set_style_text_font(ui->screen_lab_env_hum, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  221. lv_obj_set_style_text_opa(ui->screen_lab_env_hum, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  222. lv_obj_set_style_text_letter_space(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  223. lv_obj_set_style_text_line_space(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  224. lv_obj_set_style_text_align(ui->screen_lab_env_hum, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  225. lv_obj_set_style_bg_opa(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  226. lv_obj_set_style_pad_top(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  227. lv_obj_set_style_pad_right(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  228. lv_obj_set_style_pad_bottom(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  229. lv_obj_set_style_pad_left(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  230. lv_obj_set_style_shadow_width(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  231. //Write codes screen_lab_ac_temp
  232. ui->screen_lab_ac_temp = lv_label_create(ui->screen_cont_power_on);
  233. lv_obj_set_pos(ui->screen_lab_ac_temp, 165, 209);
  234. lv_obj_set_size(ui->screen_lab_ac_temp, 132, 72);
  235. lv_label_set_text(ui->screen_lab_ac_temp, "26");
  236. lv_label_set_long_mode(ui->screen_lab_ac_temp, LV_LABEL_LONG_WRAP);
  237. //Write style for screen_lab_ac_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  238. lv_obj_set_style_border_width(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  239. lv_obj_set_style_radius(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  240. lv_obj_set_style_text_color(ui->screen_lab_ac_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  241. lv_obj_set_style_text_font(ui->screen_lab_ac_temp, &lv_font_PuHui_ExtraBold_60, LV_PART_MAIN|LV_STATE_DEFAULT);
  242. lv_obj_set_style_text_opa(ui->screen_lab_ac_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  243. lv_obj_set_style_text_letter_space(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  244. lv_obj_set_style_text_line_space(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  245. lv_obj_set_style_text_align(ui->screen_lab_ac_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  246. lv_obj_set_style_bg_opa(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  247. lv_obj_set_style_pad_top(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  248. lv_obj_set_style_pad_right(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  249. lv_obj_set_style_pad_bottom(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  250. lv_obj_set_style_pad_left(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  251. lv_obj_set_style_shadow_width(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  252. //Write codes screen_ib_power
  253. ui->screen_ib_power = lv_imagebutton_create(ui->screen_cont_power_on);
  254. lv_obj_set_pos(ui->screen_ib_power, 198, 276);
  255. lv_obj_set_size(ui->screen_ib_power, 84, 84);
  256. lv_obj_add_flag(ui->screen_ib_power, LV_OBJ_FLAG_CHECKABLE);
  257. lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  258. lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_PRESSED, &_swtich_RGB565A8_84x84, NULL, NULL);
  259. lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  260. ui->screen_ib_power_label = lv_label_create(ui->screen_ib_power);
  261. lv_label_set_text(ui->screen_ib_power_label, "");
  262. lv_label_set_long_mode(ui->screen_ib_power_label, LV_LABEL_LONG_WRAP);
  263. lv_obj_align(ui->screen_ib_power_label, LV_ALIGN_CENTER, 0, 0);
  264. lv_obj_set_style_pad_all(ui->screen_ib_power, 0, LV_STATE_DEFAULT);
  265. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  266. lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  267. lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  268. lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  269. lv_obj_set_style_text_align(ui->screen_ib_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  270. lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  271. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  272. lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  273. lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  274. lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  275. lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  276. lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  277. lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  278. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  279. lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  280. lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  281. lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  282. lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  283. lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  284. lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  285. //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  286. lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  287. lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  288. //Write codes screen_ib_heat
  289. ui->screen_ib_heat = lv_imagebutton_create(ui->screen_cont_power_on);
  290. lv_obj_set_pos(ui->screen_ib_heat, 333, 417);
  291. lv_obj_set_size(ui->screen_ib_heat, 48, 48);
  292. lv_obj_add_flag(ui->screen_ib_heat, LV_OBJ_FLAG_CHECKABLE);
  293. lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_RELEASED, &_ac_mode_heat_RGB565A8_48x48, NULL, NULL);
  294. lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_PRESSED, &_ac_mode_heat_sel_RGB565A8_48x48, NULL, NULL);
  295. lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_ac_mode_heat_sel_RGB565A8_48x48, NULL, NULL);
  296. ui->screen_ib_heat_label = lv_label_create(ui->screen_ib_heat);
  297. lv_label_set_text(ui->screen_ib_heat_label, "");
  298. lv_label_set_long_mode(ui->screen_ib_heat_label, LV_LABEL_LONG_WRAP);
  299. lv_obj_align(ui->screen_ib_heat_label, LV_ALIGN_CENTER, 0, 0);
  300. lv_obj_set_style_pad_all(ui->screen_ib_heat, 0, LV_STATE_DEFAULT);
  301. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  302. lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  303. lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  304. lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  305. lv_obj_set_style_text_align(ui->screen_ib_heat, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  306. lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  307. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  308. lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  309. lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  310. lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  311. lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  312. lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  313. lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  314. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  315. lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  316. lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  317. lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  318. lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  319. lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  320. lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  321. //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  322. lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  323. lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  324. //Write codes screen_ib_cool
  325. ui->screen_ib_cool = lv_imagebutton_create(ui->screen_cont_power_on);
  326. lv_obj_set_pos(ui->screen_ib_cool, 82, 415);
  327. lv_obj_set_size(ui->screen_ib_cool, 48, 48);
  328. lv_obj_add_flag(ui->screen_ib_cool, LV_OBJ_FLAG_CHECKABLE);
  329. lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_RELEASED, &_ac_mode_cool_RGB565A8_48x48, NULL, NULL);
  330. lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_PRESSED, &_ac_mode_cool_sel_RGB565A8_48x48, NULL, NULL);
  331. lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_ac_mode_cool_sel_RGB565A8_48x48, NULL, NULL);
  332. ui->screen_ib_cool_label = lv_label_create(ui->screen_ib_cool);
  333. lv_label_set_text(ui->screen_ib_cool_label, "");
  334. lv_label_set_long_mode(ui->screen_ib_cool_label, LV_LABEL_LONG_WRAP);
  335. lv_obj_align(ui->screen_ib_cool_label, LV_ALIGN_CENTER, 0, 0);
  336. lv_obj_set_style_pad_all(ui->screen_ib_cool, 0, LV_STATE_DEFAULT);
  337. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  338. lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  339. lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  340. lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  341. lv_obj_set_style_text_align(ui->screen_ib_cool, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  342. lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  343. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  344. lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  345. lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  346. lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  347. lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  348. lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  349. lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  350. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  351. lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  352. lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  353. lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  354. lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  355. lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  356. lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  357. //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  358. lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  359. lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  360. //Write codes screen_cont_power_off
  361. ui->screen_cont_power_off = lv_obj_create(ui->screen);
  362. lv_obj_set_pos(ui->screen_cont_power_off, 0, 0);
  363. lv_obj_set_size(ui->screen_cont_power_off, 480, 480);
  364. lv_obj_set_scrollbar_mode(ui->screen_cont_power_off, LV_SCROLLBAR_MODE_OFF);
  365. lv_obj_add_flag(ui->screen_cont_power_off, LV_OBJ_FLAG_HIDDEN);
  366. lv_obj_add_flag(ui->screen_cont_power_off, LV_OBJ_FLAG_HIDDEN);
  367. //Write style for screen_cont_power_off, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  368. lv_obj_set_style_border_width(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  369. lv_obj_set_style_radius(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  370. lv_obj_set_style_bg_opa(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  371. lv_obj_set_style_pad_top(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  372. lv_obj_set_style_pad_right(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  373. lv_obj_set_style_pad_bottom(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  374. lv_obj_set_style_pad_left(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  375. lv_obj_set_style_shadow_width(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  376. //Write codes screen_lab_env_hum_2
  377. ui->screen_lab_env_hum_2 = lv_label_create(ui->screen_cont_power_off);
  378. lv_obj_set_pos(ui->screen_lab_env_hum_2, 300, 193);
  379. lv_obj_set_size(ui->screen_lab_env_hum_2, 71, 20);
  380. lv_label_set_text(ui->screen_lab_env_hum_2, "40%");
  381. lv_label_set_long_mode(ui->screen_lab_env_hum_2, LV_LABEL_LONG_WRAP);
  382. //Write style for screen_lab_env_hum_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  383. lv_obj_set_style_border_width(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  384. lv_obj_set_style_radius(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  385. lv_obj_set_style_text_color(ui->screen_lab_env_hum_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  386. lv_obj_set_style_text_font(ui->screen_lab_env_hum_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  387. lv_obj_set_style_text_opa(ui->screen_lab_env_hum_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  388. lv_obj_set_style_text_letter_space(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  389. lv_obj_set_style_text_line_space(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  390. lv_obj_set_style_text_align(ui->screen_lab_env_hum_2, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  391. lv_obj_set_style_bg_opa(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  392. lv_obj_set_style_pad_top(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  393. lv_obj_set_style_pad_right(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  394. lv_obj_set_style_pad_bottom(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  395. lv_obj_set_style_pad_left(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  396. lv_obj_set_style_shadow_width(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  397. //Write codes screen_label_9
  398. ui->screen_label_9 = lv_label_create(ui->screen_cont_power_off);
  399. lv_obj_set_pos(ui->screen_label_9, 184, 193);
  400. lv_obj_set_size(ui->screen_label_9, 71, 20);
  401. lv_label_set_text(ui->screen_label_9, "26°C");
  402. lv_label_set_long_mode(ui->screen_label_9, LV_LABEL_LONG_WRAP);
  403. //Write style for screen_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  404. lv_obj_set_style_border_width(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  405. lv_obj_set_style_radius(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  406. lv_obj_set_style_text_color(ui->screen_label_9, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  407. lv_obj_set_style_text_font(ui->screen_label_9, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  408. lv_obj_set_style_text_opa(ui->screen_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  409. lv_obj_set_style_text_letter_space(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  410. lv_obj_set_style_text_line_space(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  411. lv_obj_set_style_text_align(ui->screen_label_9, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  412. lv_obj_set_style_bg_opa(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  413. lv_obj_set_style_pad_top(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  414. lv_obj_set_style_pad_right(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  415. lv_obj_set_style_pad_bottom(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  416. lv_obj_set_style_pad_left(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  417. lv_obj_set_style_shadow_width(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  418. //Write codes screen_label_10
  419. ui->screen_label_10 = lv_label_create(ui->screen_cont_power_off);
  420. lv_obj_set_pos(ui->screen_label_10, 262, 186);
  421. lv_obj_set_size(ui->screen_label_10, 34, 32);
  422. lv_label_set_text(ui->screen_label_10, "");
  423. lv_label_set_long_mode(ui->screen_label_10, LV_LABEL_LONG_WRAP);
  424. //Write style for screen_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  425. lv_obj_set_style_border_width(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  426. lv_obj_set_style_radius(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  427. lv_obj_set_style_text_color(ui->screen_label_10, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  428. lv_obj_set_style_text_font(ui->screen_label_10, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  429. lv_obj_set_style_text_opa(ui->screen_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  430. lv_obj_set_style_text_letter_space(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  431. lv_obj_set_style_text_line_space(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  432. lv_obj_set_style_text_align(ui->screen_label_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  433. lv_obj_set_style_bg_opa(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  434. lv_obj_set_style_pad_top(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  435. lv_obj_set_style_pad_right(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  436. lv_obj_set_style_pad_bottom(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  437. lv_obj_set_style_pad_left(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  438. lv_obj_set_style_shadow_width(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  439. //Write codes screen_label_11
  440. ui->screen_label_11 = lv_label_create(ui->screen_cont_power_off);
  441. lv_obj_set_pos(ui->screen_label_11, 150, 186);
  442. lv_obj_set_size(ui->screen_label_11, 34, 32);
  443. lv_label_set_text(ui->screen_label_11, "");
  444. lv_label_set_long_mode(ui->screen_label_11, LV_LABEL_LONG_WRAP);
  445. //Write style for screen_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  446. lv_obj_set_style_border_width(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  447. lv_obj_set_style_radius(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  448. lv_obj_set_style_text_color(ui->screen_label_11, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  449. lv_obj_set_style_text_font(ui->screen_label_11, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  450. lv_obj_set_style_text_opa(ui->screen_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  451. lv_obj_set_style_text_letter_space(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  452. lv_obj_set_style_text_line_space(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  453. lv_obj_set_style_text_align(ui->screen_label_11, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  454. lv_obj_set_style_bg_opa(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  455. lv_obj_set_style_pad_top(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  456. lv_obj_set_style_pad_right(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  457. lv_obj_set_style_pad_bottom(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  458. lv_obj_set_style_pad_left(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  459. lv_obj_set_style_shadow_width(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  460. //Write codes screen_imgbtn_1
  461. ui->screen_imgbtn_1 = lv_imagebutton_create(ui->screen_cont_power_off);
  462. lv_obj_set_pos(ui->screen_imgbtn_1, 199, 261);
  463. lv_obj_set_size(ui->screen_imgbtn_1, 84, 84);
  464. lv_obj_add_flag(ui->screen_imgbtn_1, LV_OBJ_FLAG_CHECKABLE);
  465. lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  466. lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_PRESSED, &_swtich_RGB565A8_84x84, NULL, NULL);
  467. lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
  468. ui->screen_imgbtn_1_label = lv_label_create(ui->screen_imgbtn_1);
  469. lv_label_set_text(ui->screen_imgbtn_1_label, "");
  470. lv_label_set_long_mode(ui->screen_imgbtn_1_label, LV_LABEL_LONG_WRAP);
  471. lv_obj_align(ui->screen_imgbtn_1_label, LV_ALIGN_CENTER, 0, 0);
  472. lv_obj_set_style_pad_all(ui->screen_imgbtn_1, 0, LV_STATE_DEFAULT);
  473. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  474. lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  475. lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  476. lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  477. lv_obj_set_style_text_align(ui->screen_imgbtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  478. lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  479. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  480. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  481. lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  482. lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  483. lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  484. lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  485. lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  486. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  487. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  488. lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  489. lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  490. lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  491. lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  492. lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  493. //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  494. lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  495. lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  496. //Write codes screen_lab_icon_err
  497. ui->screen_lab_icon_err = lv_label_create(ui->screen);
  498. lv_obj_set_pos(ui->screen_lab_icon_err, 90, 11);
  499. lv_obj_set_size(ui->screen_lab_icon_err, 26, 26);
  500. lv_obj_add_flag(ui->screen_lab_icon_err, LV_OBJ_FLAG_HIDDEN);
  501. lv_label_set_text(ui->screen_lab_icon_err, "");
  502. lv_label_set_long_mode(ui->screen_lab_icon_err, LV_LABEL_LONG_WRAP);
  503. //Write style for screen_lab_icon_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  504. lv_obj_set_style_border_width(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  505. lv_obj_set_style_radius(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  506. lv_obj_set_style_text_color(ui->screen_lab_icon_err, lv_color_hex(0xff0028), LV_PART_MAIN|LV_STATE_DEFAULT);
  507. lv_obj_set_style_text_font(ui->screen_lab_icon_err, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  508. lv_obj_set_style_text_opa(ui->screen_lab_icon_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  509. lv_obj_set_style_text_letter_space(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  510. lv_obj_set_style_text_line_space(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  511. lv_obj_set_style_text_align(ui->screen_lab_icon_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  512. lv_obj_set_style_bg_opa(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  513. lv_obj_set_style_pad_top(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  514. lv_obj_set_style_pad_right(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  515. lv_obj_set_style_pad_bottom(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  516. lv_obj_set_style_pad_left(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  517. lv_obj_set_style_shadow_width(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  518. //Write codes screen_img_wifi
  519. ui->screen_img_wifi = lv_image_create(ui->screen);
  520. lv_obj_set_pos(ui->screen_img_wifi, 17, 8);
  521. lv_obj_set_size(ui->screen_img_wifi, 32, 32);
  522. lv_obj_add_flag(ui->screen_img_wifi, LV_OBJ_FLAG_HIDDEN);
  523. lv_obj_add_flag(ui->screen_img_wifi, LV_OBJ_FLAG_CLICKABLE);
  524. lv_image_set_src(ui->screen_img_wifi, &_wifi_stron_RGB565A8_32x32);
  525. lv_image_set_pivot(ui->screen_img_wifi, 50,50);
  526. lv_image_set_rotation(ui->screen_img_wifi, 0);
  527. //Write style for screen_img_wifi, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  528. lv_obj_set_style_image_recolor_opa(ui->screen_img_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  529. lv_obj_set_style_image_opa(ui->screen_img_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  530. //Write codes screen_lab_icon_cloud
  531. ui->screen_lab_icon_cloud = lv_label_create(ui->screen);
  532. lv_obj_set_pos(ui->screen_lab_icon_cloud, 57, 12);
  533. lv_obj_set_size(ui->screen_lab_icon_cloud, 25, 23);
  534. lv_obj_add_flag(ui->screen_lab_icon_cloud, LV_OBJ_FLAG_HIDDEN);
  535. lv_label_set_text(ui->screen_lab_icon_cloud, "");
  536. lv_label_set_long_mode(ui->screen_lab_icon_cloud, LV_LABEL_LONG_WRAP);
  537. //Write style for screen_lab_icon_cloud, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  538. lv_obj_set_style_bg_opa(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  539. lv_obj_set_style_border_width(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  540. lv_obj_set_style_radius(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  541. lv_obj_set_style_shadow_width(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  542. lv_obj_set_style_pad_top(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  543. lv_obj_set_style_pad_bottom(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  544. lv_obj_set_style_pad_left(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  545. lv_obj_set_style_pad_right(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  546. lv_obj_set_style_text_color(ui->screen_lab_icon_cloud, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  547. lv_obj_set_style_text_font(ui->screen_lab_icon_cloud, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
  548. lv_obj_set_style_text_opa(ui->screen_lab_icon_cloud, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  549. lv_obj_set_style_text_letter_space(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  550. lv_obj_set_style_text_line_space(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  551. lv_obj_set_style_text_align(ui->screen_lab_icon_cloud, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  552. //Write codes screen_item
  553. ui->screen_item = lv_obj_create(ui->screen);
  554. lv_obj_set_pos(ui->screen_item, 225, 352);
  555. lv_obj_set_size(ui->screen_item, 29, 26);
  556. lv_obj_set_scrollbar_mode(ui->screen_item, LV_SCROLLBAR_MODE_OFF);
  557. lv_obj_add_flag(ui->screen_item, LV_OBJ_FLAG_HIDDEN);
  558. //Write style for screen_item, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  559. lv_obj_set_style_bg_opa(ui->screen_item, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  560. lv_obj_set_style_bg_color(ui->screen_item, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  561. lv_obj_set_style_bg_grad_dir(ui->screen_item, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  562. lv_obj_set_style_border_width(ui->screen_item, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  563. lv_obj_set_style_border_opa(ui->screen_item, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  564. lv_obj_set_style_border_color(ui->screen_item, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  565. lv_obj_set_style_border_side(ui->screen_item, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  566. lv_obj_set_style_radius(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  567. lv_obj_set_style_shadow_width(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  568. lv_obj_set_style_pad_top(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  569. lv_obj_set_style_pad_bottom(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  570. lv_obj_set_style_pad_left(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  571. lv_obj_set_style_pad_right(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  572. //Write codes screen_lab_mode
  573. ui->screen_lab_mode = lv_label_create(ui->screen);
  574. lv_obj_set_pos(ui->screen_lab_mode, 186, 110);
  575. lv_obj_set_size(ui->screen_lab_mode, 100, 32);
  576. lv_label_set_text(ui->screen_lab_mode, "制冷热");
  577. lv_label_set_long_mode(ui->screen_lab_mode, LV_LABEL_LONG_WRAP);
  578. //Write style for screen_lab_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  579. lv_obj_set_style_border_width(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  580. lv_obj_set_style_radius(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  581. lv_obj_set_style_text_color(ui->screen_lab_mode, lv_color_hex(0x989696), LV_PART_MAIN|LV_STATE_DEFAULT);
  582. lv_obj_set_style_text_font(ui->screen_lab_mode, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  583. lv_obj_set_style_text_opa(ui->screen_lab_mode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  584. lv_obj_set_style_text_letter_space(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  585. lv_obj_set_style_text_line_space(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  586. lv_obj_set_style_text_align(ui->screen_lab_mode, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  587. lv_obj_set_style_bg_opa(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  588. lv_obj_set_style_pad_top(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  589. lv_obj_set_style_pad_right(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  590. lv_obj_set_style_pad_bottom(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  591. lv_obj_set_style_pad_left(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  592. lv_obj_set_style_shadow_width(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  593. //The custom code of screen.
  594. lv_obj_add_flag(ui->screen_arc_temp, LV_OBJ_FLAG_ADV_HITTEST);
  595. lv_obj_set_ext_click_area(ui->screen_arc_temp, 40);
  596. if(hp_controller.mode == MODE_COOL) {
  597. lv_arc_set_range(ui->screen_arc_temp, 7,22);
  598. lv_label_set_text_fmt(ui->screen_lab_ac_temp, "%d", hp_controller.cool_set_temp);
  599. lv_arc_set_value(guider_ui.screen_arc_temp, hp_controller.cool_set_temp);
  600. lv_label_set_text_static(ui->screen_lab_mode, "制冷");
  601. lv_label_set_text_static(ui->screen_lab_temp_low, "7°C");
  602. lv_label_set_text_static(ui->screen_lab_temp_high, "22°C");
  603. lv_obj_add_state(ui->screen_ib_cool, LV_STATE_CHECKED);
  604. } else if(hp_controller.mode == MODE_HEAT) {
  605. lv_arc_set_range(ui->screen_arc_temp, 30,60);
  606. lv_arc_set_value(ui->screen_arc_temp, hp_controller.heat_set_temp);
  607. lv_label_set_text_fmt(ui->screen_lab_ac_temp, "%d", hp_controller.heat_set_temp);
  608. lv_label_set_text_static(ui->screen_lab_mode, "制热");
  609. lv_label_set_text_static(ui->screen_lab_temp_low, "30°C");
  610. lv_label_set_text_static(ui->screen_lab_temp_high, "60°C");
  611. lv_obj_add_state(ui->screen_ib_heat, LV_STATE_CHECKED);
  612. }
  613. //Update current screen layout.
  614. lv_obj_update_layout(ui->screen);
  615. //Init events for screen.
  616. events_init_screen(ui);
  617. }