setup_scr_screen_main.c 82 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084
  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 "xf_controller.h"
  16. void set_xf_mode(lv_ui *ui, uint16_t mode) {
  17. lv_obj_t *cont = ui->screen_main_cont_mode;
  18. uint32_t count = lv_obj_get_child_count(cont);
  19. for (int i = 0; i < count; i++) {
  20. lv_obj_t *child = lv_obj_get_child(cont, i);
  21. lv_obj_remove_state(child, LV_STATE_CHECKED);
  22. }
  23. switch (mode) {
  24. case NXH:
  25. lv_obj_add_state(ui->screen_main_imgbtn_nxh, LV_STATE_CHECKED);
  26. break;
  27. case JS:
  28. lv_obj_add_state(ui->screen_main_imgbtn_js, LV_STATE_CHECKED);
  29. break;
  30. case XF:
  31. lv_obj_add_state(ui->screen_main_imgbtn_xf, LV_STATE_CHECKED);
  32. break;
  33. case AUTO:
  34. lv_obj_add_state(ui->screen_main_imgbtn_auto, LV_STATE_CHECKED);
  35. break;
  36. default:
  37. break;
  38. }
  39. }
  40. void setup_scr_screen_main(lv_ui *ui)
  41. {
  42. //Write codes screen_main
  43. ui->screen_main = lv_obj_create(NULL);
  44. lv_obj_set_size(ui->screen_main, 480, 480);
  45. lv_obj_set_scrollbar_mode(ui->screen_main, LV_SCROLLBAR_MODE_OFF);
  46. //Write style for screen_main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  47. lv_obj_set_style_bg_opa(ui->screen_main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  48. lv_obj_set_style_bg_image_src(ui->screen_main, &_back_RGB565A8_480x480, LV_PART_MAIN|LV_STATE_DEFAULT);
  49. lv_obj_set_style_bg_image_opa(ui->screen_main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  50. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  51. //Write codes screen_main_arc_AIQ
  52. ui->screen_main_arc_AIQ = lv_arc_create(ui->screen_main);
  53. lv_obj_set_pos(ui->screen_main_arc_AIQ, 78, 56);
  54. lv_obj_set_size(ui->screen_main_arc_AIQ, 326, 320);
  55. lv_arc_set_mode(ui->screen_main_arc_AIQ, LV_ARC_MODE_NORMAL);
  56. lv_arc_set_range(ui->screen_main_arc_AIQ, 0, 100);
  57. lv_arc_set_bg_angles(ui->screen_main_arc_AIQ, 180, 0);
  58. lv_arc_set_value(ui->screen_main_arc_AIQ, 100);
  59. lv_arc_set_rotation(ui->screen_main_arc_AIQ, 0);
  60. //Write style for screen_main_arc_AIQ, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  61. lv_obj_set_style_bg_opa(ui->screen_main_arc_AIQ, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  62. lv_obj_set_style_border_width(ui->screen_main_arc_AIQ, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  63. lv_obj_set_style_arc_width(ui->screen_main_arc_AIQ, 12, LV_PART_MAIN|LV_STATE_DEFAULT);
  64. lv_obj_set_style_arc_opa(ui->screen_main_arc_AIQ, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  65. lv_obj_set_style_arc_color(ui->screen_main_arc_AIQ, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT);
  66. lv_obj_set_style_arc_rounded(ui->screen_main_arc_AIQ, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  67. lv_obj_set_style_radius(ui->screen_main_arc_AIQ, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
  68. lv_obj_set_style_pad_top(ui->screen_main_arc_AIQ, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  69. lv_obj_set_style_pad_bottom(ui->screen_main_arc_AIQ, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  70. lv_obj_set_style_pad_left(ui->screen_main_arc_AIQ, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  71. lv_obj_set_style_pad_right(ui->screen_main_arc_AIQ, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
  72. lv_obj_set_style_shadow_width(ui->screen_main_arc_AIQ, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  73. //Write style for screen_main_arc_AIQ, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  74. lv_obj_set_style_arc_width(ui->screen_main_arc_AIQ, 12, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  75. lv_obj_set_style_arc_opa(ui->screen_main_arc_AIQ, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  76. lv_obj_set_style_arc_color(ui->screen_main_arc_AIQ, lv_color_hex(0x2FDA64), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  77. lv_obj_set_style_arc_rounded(ui->screen_main_arc_AIQ, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  78. //Write style for screen_main_arc_AIQ, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  79. lv_obj_set_style_bg_opa(ui->screen_main_arc_AIQ, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  80. lv_obj_set_style_pad_all(ui->screen_main_arc_AIQ, 5, LV_PART_KNOB|LV_STATE_DEFAULT);
  81. //Write codes screen_main_label_temp
  82. ui->screen_main_label_temp = lv_label_create(ui->screen_main);
  83. lv_obj_set_pos(ui->screen_main_label_temp, 75, 290);
  84. lv_obj_set_size(ui->screen_main_label_temp, 65, 30);
  85. lv_label_set_text(ui->screen_main_label_temp, "0");
  86. lv_label_set_long_mode(ui->screen_main_label_temp, LV_LABEL_LONG_WRAP);
  87. //Write style for screen_main_label_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  88. lv_obj_set_style_border_width(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  89. lv_obj_set_style_radius(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  90. lv_obj_set_style_text_color(ui->screen_main_label_temp, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT);
  91. lv_obj_set_style_text_font(ui->screen_main_label_temp, &lv_font_Alibaba_PuHuiTi_Medium_26, LV_PART_MAIN|LV_STATE_DEFAULT);
  92. lv_obj_set_style_text_opa(ui->screen_main_label_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  93. lv_obj_set_style_text_letter_space(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  94. lv_obj_set_style_text_line_space(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  95. lv_obj_set_style_text_align(ui->screen_main_label_temp, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  96. lv_obj_set_style_bg_opa(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  97. lv_obj_set_style_pad_top(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  98. lv_obj_set_style_pad_right(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  99. lv_obj_set_style_pad_bottom(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  100. lv_obj_set_style_pad_left(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  101. lv_obj_set_style_shadow_width(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  102. //Write codes screen_main_label_hum_vul2
  103. ui->screen_main_label_hum_vul2 = lv_label_create(ui->screen_main);
  104. lv_obj_set_pos(ui->screen_main_label_hum_vul2, 175, 290);
  105. lv_obj_set_size(ui->screen_main_label_hum_vul2, 69, 25);
  106. lv_label_set_text(ui->screen_main_label_hum_vul2, "0");
  107. lv_label_set_long_mode(ui->screen_main_label_hum_vul2, LV_LABEL_LONG_WRAP);
  108. //Write style for screen_main_label_hum_vul2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  109. lv_obj_set_style_border_width(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  110. lv_obj_set_style_radius(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  111. lv_obj_set_style_text_color(ui->screen_main_label_hum_vul2, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT);
  112. lv_obj_set_style_text_font(ui->screen_main_label_hum_vul2, &lv_font_Alibaba_PuHuiTi_Medium_26, LV_PART_MAIN|LV_STATE_DEFAULT);
  113. lv_obj_set_style_text_opa(ui->screen_main_label_hum_vul2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  114. lv_obj_set_style_text_letter_space(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  115. lv_obj_set_style_text_line_space(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  116. lv_obj_set_style_text_align(ui->screen_main_label_hum_vul2, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  117. lv_obj_set_style_bg_opa(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  118. lv_obj_set_style_pad_top(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  119. lv_obj_set_style_pad_right(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  120. lv_obj_set_style_pad_bottom(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  121. lv_obj_set_style_pad_left(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  122. lv_obj_set_style_shadow_width(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  123. //Write codes screen_main_label_co2
  124. ui->screen_main_label_co2 = lv_label_create(ui->screen_main);
  125. lv_obj_set_pos(ui->screen_main_label_co2, 291, 290);
  126. lv_obj_set_size(ui->screen_main_label_co2, 69, 26);
  127. lv_label_set_text(ui->screen_main_label_co2, "0");
  128. lv_label_set_long_mode(ui->screen_main_label_co2, LV_LABEL_LONG_WRAP);
  129. //Write style for screen_main_label_co2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  130. lv_obj_set_style_border_width(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  131. lv_obj_set_style_radius(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  132. lv_obj_set_style_text_color(ui->screen_main_label_co2, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT);
  133. lv_obj_set_style_text_font(ui->screen_main_label_co2, &lv_font_Alibaba_PuHuiTi_Medium_26, LV_PART_MAIN|LV_STATE_DEFAULT);
  134. lv_obj_set_style_text_opa(ui->screen_main_label_co2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  135. lv_obj_set_style_text_letter_space(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  136. lv_obj_set_style_text_line_space(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  137. lv_obj_set_style_text_align(ui->screen_main_label_co2, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  138. lv_obj_set_style_bg_opa(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  139. lv_obj_set_style_pad_top(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  140. lv_obj_set_style_pad_right(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  141. lv_obj_set_style_pad_bottom(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  142. lv_obj_set_style_pad_left(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  143. lv_obj_set_style_shadow_width(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  144. //Write codes screen_main_label_6
  145. ui->screen_main_label_6 = lv_label_create(ui->screen_main);
  146. lv_obj_set_pos(ui->screen_main_label_6, 360, 299);
  147. lv_obj_set_size(ui->screen_main_label_6, 66, 18);
  148. lv_label_set_text(ui->screen_main_label_6, "ppm");
  149. lv_label_set_long_mode(ui->screen_main_label_6, LV_LABEL_LONG_WRAP);
  150. //Write style for screen_main_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  151. lv_obj_set_style_border_width(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  152. lv_obj_set_style_radius(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  153. lv_obj_set_style_text_color(ui->screen_main_label_6, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  154. lv_obj_set_style_text_font(ui->screen_main_label_6, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  155. lv_obj_set_style_text_opa(ui->screen_main_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  156. lv_obj_set_style_text_letter_space(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  157. lv_obj_set_style_text_line_space(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  158. lv_obj_set_style_text_align(ui->screen_main_label_6, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  159. lv_obj_set_style_bg_opa(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  160. lv_obj_set_style_pad_top(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  161. lv_obj_set_style_pad_right(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  162. lv_obj_set_style_pad_bottom(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  163. lv_obj_set_style_pad_left(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  164. lv_obj_set_style_shadow_width(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  165. //Write codes screen_main_label_7
  166. ui->screen_main_label_7 = lv_label_create(ui->screen_main);
  167. lv_obj_set_pos(ui->screen_main_label_7, 244, 299);
  168. lv_obj_set_size(ui->screen_main_label_7, 66, 18);
  169. lv_label_set_text(ui->screen_main_label_7, "%");
  170. lv_label_set_long_mode(ui->screen_main_label_7, LV_LABEL_LONG_WRAP);
  171. //Write style for screen_main_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  172. lv_obj_set_style_border_width(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  173. lv_obj_set_style_radius(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  174. lv_obj_set_style_text_color(ui->screen_main_label_7, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  175. lv_obj_set_style_text_font(ui->screen_main_label_7, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  176. lv_obj_set_style_text_opa(ui->screen_main_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  177. lv_obj_set_style_text_letter_space(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  178. lv_obj_set_style_text_line_space(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  179. lv_obj_set_style_text_align(ui->screen_main_label_7, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  180. lv_obj_set_style_bg_opa(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  181. lv_obj_set_style_pad_top(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  182. lv_obj_set_style_pad_right(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  183. lv_obj_set_style_pad_bottom(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  184. lv_obj_set_style_pad_left(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  185. lv_obj_set_style_shadow_width(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  186. //Write codes screen_main_label_8
  187. ui->screen_main_label_8 = lv_label_create(ui->screen_main);
  188. lv_obj_set_pos(ui->screen_main_label_8, 140, 299);
  189. lv_obj_set_size(ui->screen_main_label_8, 66, 18);
  190. lv_label_set_text(ui->screen_main_label_8, "℃");
  191. lv_label_set_long_mode(ui->screen_main_label_8, LV_LABEL_LONG_WRAP);
  192. //Write style for screen_main_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  193. lv_obj_set_style_border_width(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  194. lv_obj_set_style_radius(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  195. lv_obj_set_style_text_color(ui->screen_main_label_8, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  196. lv_obj_set_style_text_font(ui->screen_main_label_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  197. lv_obj_set_style_text_opa(ui->screen_main_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  198. lv_obj_set_style_text_letter_space(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  199. lv_obj_set_style_text_line_space(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  200. lv_obj_set_style_text_align(ui->screen_main_label_8, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  201. lv_obj_set_style_bg_opa(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  202. lv_obj_set_style_pad_top(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  203. lv_obj_set_style_pad_right(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  204. lv_obj_set_style_pad_bottom(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  205. lv_obj_set_style_pad_left(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  206. lv_obj_set_style_shadow_width(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  207. //Write codes screen_main_label_9
  208. ui->screen_main_label_9 = lv_label_create(ui->screen_main);
  209. lv_obj_set_pos(ui->screen_main_label_9, 108, 328);
  210. lv_obj_set_size(ui->screen_main_label_9, 40, 26);
  211. lv_label_set_text(ui->screen_main_label_9, "");
  212. lv_label_set_long_mode(ui->screen_main_label_9, LV_LABEL_LONG_WRAP);
  213. //Write style for screen_main_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  214. lv_obj_set_style_border_width(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  215. lv_obj_set_style_radius(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  216. lv_obj_set_style_text_color(ui->screen_main_label_9, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  217. lv_obj_set_style_text_font(ui->screen_main_label_9, &lv_font_iconfont_24, LV_PART_MAIN|LV_STATE_DEFAULT);
  218. lv_obj_set_style_text_opa(ui->screen_main_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  219. lv_obj_set_style_text_letter_space(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  220. lv_obj_set_style_text_line_space(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  221. lv_obj_set_style_text_align(ui->screen_main_label_9, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  222. lv_obj_set_style_bg_opa(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  223. lv_obj_set_style_pad_top(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  224. lv_obj_set_style_pad_right(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  225. lv_obj_set_style_pad_bottom(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  226. lv_obj_set_style_pad_left(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  227. lv_obj_set_style_shadow_width(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  228. //Write codes screen_main_label_10
  229. ui->screen_main_label_10 = lv_label_create(ui->screen_main);
  230. lv_obj_set_pos(ui->screen_main_label_10, 225, 328);
  231. lv_obj_set_size(ui->screen_main_label_10, 36, 25);
  232. lv_label_set_text(ui->screen_main_label_10, "");
  233. lv_label_set_long_mode(ui->screen_main_label_10, LV_LABEL_LONG_WRAP);
  234. //Write style for screen_main_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  235. lv_obj_set_style_border_width(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  236. lv_obj_set_style_radius(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  237. lv_obj_set_style_text_color(ui->screen_main_label_10, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  238. lv_obj_set_style_text_font(ui->screen_main_label_10, &lv_font_iconfont_24, LV_PART_MAIN|LV_STATE_DEFAULT);
  239. lv_obj_set_style_text_opa(ui->screen_main_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  240. lv_obj_set_style_text_letter_space(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  241. lv_obj_set_style_text_line_space(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  242. lv_obj_set_style_text_align(ui->screen_main_label_10, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  243. lv_obj_set_style_bg_opa(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  244. lv_obj_set_style_pad_top(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  245. lv_obj_set_style_pad_right(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  246. lv_obj_set_style_pad_bottom(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  247. lv_obj_set_style_pad_left(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  248. lv_obj_set_style_shadow_width(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  249. //Write codes screen_main_label_11
  250. ui->screen_main_label_11 = lv_label_create(ui->screen_main);
  251. lv_obj_set_pos(ui->screen_main_label_11, 323, 327);
  252. lv_obj_set_size(ui->screen_main_label_11, 53, 27);
  253. lv_label_set_text(ui->screen_main_label_11, "CO₂");
  254. lv_label_set_long_mode(ui->screen_main_label_11, LV_LABEL_LONG_WRAP);
  255. //Write style for screen_main_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  256. lv_obj_set_style_border_width(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  257. lv_obj_set_style_radius(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  258. lv_obj_set_style_text_color(ui->screen_main_label_11, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  259. lv_obj_set_style_text_font(ui->screen_main_label_11, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
  260. lv_obj_set_style_text_opa(ui->screen_main_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  261. lv_obj_set_style_text_letter_space(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  262. lv_obj_set_style_text_line_space(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  263. lv_obj_set_style_text_align(ui->screen_main_label_11, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  264. lv_obj_set_style_bg_opa(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  265. lv_obj_set_style_pad_top(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  266. lv_obj_set_style_pad_right(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  267. lv_obj_set_style_pad_bottom(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  268. lv_obj_set_style_pad_left(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  269. lv_obj_set_style_shadow_width(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  270. //Write codes screen_main_label_14
  271. ui->screen_main_label_14 = lv_label_create(ui->screen_main);
  272. lv_obj_set_pos(ui->screen_main_label_14, 115, 40);
  273. lv_obj_set_size(ui->screen_main_label_14, 127, 20);
  274. lv_obj_add_flag(ui->screen_main_label_14, LV_OBJ_FLAG_HIDDEN);
  275. lv_label_set_text(ui->screen_main_label_14, "滤芯剩余:");
  276. lv_label_set_long_mode(ui->screen_main_label_14, LV_LABEL_LONG_WRAP);
  277. //Write style for screen_main_label_14, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  278. lv_obj_set_style_border_width(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  279. lv_obj_set_style_radius(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  280. lv_obj_set_style_text_color(ui->screen_main_label_14, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  281. lv_obj_set_style_text_font(ui->screen_main_label_14, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
  282. lv_obj_set_style_text_opa(ui->screen_main_label_14, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  283. lv_obj_set_style_text_letter_space(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  284. lv_obj_set_style_text_line_space(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  285. lv_obj_set_style_text_align(ui->screen_main_label_14, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  286. lv_obj_set_style_bg_opa(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  287. lv_obj_set_style_pad_top(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  288. lv_obj_set_style_pad_right(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  289. lv_obj_set_style_pad_bottom(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  290. lv_obj_set_style_pad_left(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  291. lv_obj_set_style_shadow_width(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  292. //Write codes screen_main_label_lvxin
  293. ui->screen_main_label_lvxin = lv_label_create(ui->screen_main);
  294. lv_obj_set_pos(ui->screen_main_label_lvxin, 242, 40);
  295. lv_obj_set_size(ui->screen_main_label_lvxin, 127, 20);
  296. lv_obj_add_flag(ui->screen_main_label_lvxin, LV_OBJ_FLAG_HIDDEN);
  297. lv_label_set_text(ui->screen_main_label_lvxin, "100%");
  298. lv_label_set_long_mode(ui->screen_main_label_lvxin, LV_LABEL_LONG_WRAP);
  299. //Write style for screen_main_label_lvxin, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  300. lv_obj_set_style_border_width(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  301. lv_obj_set_style_radius(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  302. lv_obj_set_style_text_color(ui->screen_main_label_lvxin, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  303. lv_obj_set_style_text_font(ui->screen_main_label_lvxin, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
  304. lv_obj_set_style_text_opa(ui->screen_main_label_lvxin, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  305. lv_obj_set_style_text_letter_space(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  306. lv_obj_set_style_text_line_space(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  307. lv_obj_set_style_text_align(ui->screen_main_label_lvxin, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  308. lv_obj_set_style_bg_opa(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  309. lv_obj_set_style_pad_top(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  310. lv_obj_set_style_pad_right(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  311. lv_obj_set_style_pad_bottom(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  312. lv_obj_set_style_pad_left(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  313. lv_obj_set_style_shadow_width(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  314. //Write codes screen_main_label_AIQ_vul
  315. ui->screen_main_label_AIQ_vul = lv_label_create(ui->screen_main);
  316. lv_obj_set_pos(ui->screen_main_label_AIQ_vul, 179, 185);
  317. lv_obj_set_size(ui->screen_main_label_AIQ_vul, 95, 44);
  318. lv_label_set_text(ui->screen_main_label_AIQ_vul, "0");
  319. lv_label_set_long_mode(ui->screen_main_label_AIQ_vul, LV_LABEL_LONG_WRAP);
  320. //Write style for screen_main_label_AIQ_vul, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  321. lv_obj_set_style_border_width(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  322. lv_obj_set_style_radius(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  323. lv_obj_set_style_text_color(ui->screen_main_label_AIQ_vul, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT);
  324. lv_obj_set_style_text_font(ui->screen_main_label_AIQ_vul, &lv_font_Alibaba_PuHuiTi_Medium_48, LV_PART_MAIN|LV_STATE_DEFAULT);
  325. lv_obj_set_style_text_opa(ui->screen_main_label_AIQ_vul, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  326. lv_obj_set_style_text_letter_space(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  327. lv_obj_set_style_text_line_space(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  328. lv_obj_set_style_text_align(ui->screen_main_label_AIQ_vul, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  329. lv_obj_set_style_bg_opa(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  330. lv_obj_set_style_pad_top(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  331. lv_obj_set_style_pad_right(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  332. lv_obj_set_style_pad_bottom(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  333. lv_obj_set_style_pad_left(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  334. lv_obj_set_style_shadow_width(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  335. //Write codes screen_main_label_17
  336. ui->screen_main_label_17 = lv_label_create(ui->screen_main);
  337. lv_obj_set_pos(ui->screen_main_label_17, 274, 214);
  338. lv_obj_set_size(ui->screen_main_label_17, 66, 18);
  339. lv_label_set_text(ui->screen_main_label_17, "ug/m³");
  340. lv_label_set_long_mode(ui->screen_main_label_17, LV_LABEL_LONG_WRAP);
  341. //Write style for screen_main_label_17, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  342. lv_obj_set_style_border_width(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  343. lv_obj_set_style_radius(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  344. lv_obj_set_style_text_color(ui->screen_main_label_17, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
  345. lv_obj_set_style_text_font(ui->screen_main_label_17, &lv_font_Alibaba_PuHuiTi_Medium_14, LV_PART_MAIN|LV_STATE_DEFAULT);
  346. lv_obj_set_style_text_opa(ui->screen_main_label_17, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  347. lv_obj_set_style_text_letter_space(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  348. lv_obj_set_style_text_line_space(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  349. lv_obj_set_style_text_align(ui->screen_main_label_17, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  350. lv_obj_set_style_bg_opa(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  351. lv_obj_set_style_pad_top(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  352. lv_obj_set_style_pad_right(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  353. lv_obj_set_style_pad_bottom(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  354. lv_obj_set_style_pad_left(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  355. lv_obj_set_style_shadow_width(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  356. //Write codes screen_main_label_18
  357. ui->screen_main_label_18 = lv_label_create(ui->screen_main);
  358. lv_obj_set_pos(ui->screen_main_label_18, 203, 141);
  359. lv_obj_set_size(ui->screen_main_label_18, 74, 26);
  360. lv_label_set_text(ui->screen_main_label_18, "PM2.5");
  361. lv_label_set_long_mode(ui->screen_main_label_18, LV_LABEL_LONG_WRAP);
  362. //Write style for screen_main_label_18, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  363. lv_obj_set_style_border_width(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  364. lv_obj_set_style_radius(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  365. lv_obj_set_style_text_color(ui->screen_main_label_18, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT);
  366. lv_obj_set_style_text_font(ui->screen_main_label_18, &lv_font_Alibaba_PuHuiTi_Medium_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  367. lv_obj_set_style_text_opa(ui->screen_main_label_18, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  368. lv_obj_set_style_text_letter_space(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  369. lv_obj_set_style_text_line_space(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  370. lv_obj_set_style_text_align(ui->screen_main_label_18, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  371. lv_obj_set_style_bg_opa(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  372. lv_obj_set_style_pad_top(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  373. lv_obj_set_style_pad_right(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  374. lv_obj_set_style_pad_bottom(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  375. lv_obj_set_style_pad_left(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  376. lv_obj_set_style_bg_image_src(ui->screen_main_label_18, &_huise_RGB565A8_74x26, LV_PART_MAIN|LV_STATE_DEFAULT);
  377. lv_obj_set_style_bg_image_opa(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  378. lv_obj_set_style_shadow_width(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  379. //Write codes screen_main_label_AIQ_sign
  380. ui->screen_main_label_AIQ_sign = lv_label_create(ui->screen_main);
  381. lv_obj_set_pos(ui->screen_main_label_AIQ_sign, 157, 178);
  382. lv_obj_set_size(ui->screen_main_label_AIQ_sign, 30, 30);
  383. lv_label_set_text(ui->screen_main_label_AIQ_sign, "");
  384. lv_label_set_long_mode(ui->screen_main_label_AIQ_sign, LV_LABEL_LONG_WRAP);
  385. //Write style for screen_main_label_AIQ_sign, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  386. lv_obj_set_style_border_width(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  387. lv_obj_set_style_radius(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  388. lv_obj_set_style_text_color(ui->screen_main_label_AIQ_sign, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  389. lv_obj_set_style_text_font(ui->screen_main_label_AIQ_sign, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  390. lv_obj_set_style_text_opa(ui->screen_main_label_AIQ_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  391. lv_obj_set_style_text_letter_space(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  392. lv_obj_set_style_text_line_space(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  393. lv_obj_set_style_text_align(ui->screen_main_label_AIQ_sign, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  394. lv_obj_set_style_bg_opa(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  395. lv_obj_set_style_pad_top(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  396. lv_obj_set_style_pad_right(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  397. lv_obj_set_style_pad_bottom(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  398. lv_obj_set_style_pad_left(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  399. lv_obj_set_style_bg_image_src(ui->screen_main_label_AIQ_sign, &_you_RGB565A8_30x30, LV_PART_MAIN|LV_STATE_DEFAULT);
  400. lv_obj_set_style_bg_image_opa(ui->screen_main_label_AIQ_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  401. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  402. lv_obj_set_style_shadow_width(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  403. //Write codes screen_main_cont_mode
  404. ui->screen_main_cont_mode = lv_obj_create(ui->screen_main);
  405. lv_obj_set_pos(ui->screen_main_cont_mode, 40, 370);
  406. lv_obj_set_size(ui->screen_main_cont_mode, 420, 109);
  407. lv_obj_set_scrollbar_mode(ui->screen_main_cont_mode, LV_SCROLLBAR_MODE_OFF);
  408. //Write style for screen_main_cont_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  409. lv_obj_set_style_border_width(ui->screen_main_cont_mode, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  410. lv_obj_set_style_border_opa(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  411. lv_obj_set_style_border_color(ui->screen_main_cont_mode, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  412. lv_obj_set_style_border_side(ui->screen_main_cont_mode, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  413. lv_obj_set_style_radius(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  414. lv_obj_set_style_bg_opa(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  415. lv_obj_set_style_pad_top(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  416. lv_obj_set_style_pad_bottom(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  417. lv_obj_set_style_pad_left(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  418. lv_obj_set_style_pad_right(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  419. lv_obj_set_style_shadow_width(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  420. //Write codes screen_main_imgbtn_auto
  421. ui->screen_main_imgbtn_auto = lv_imagebutton_create(ui->screen_main_cont_mode);
  422. lv_obj_set_pos(ui->screen_main_imgbtn_auto, 321, 0);
  423. lv_obj_set_size(ui->screen_main_imgbtn_auto, 80, 80);
  424. lv_obj_add_flag(ui->screen_main_imgbtn_auto, LV_OBJ_FLAG_EVENT_BUBBLE);
  425. lv_obj_add_flag(ui->screen_main_imgbtn_auto, LV_OBJ_FLAG_CHECKABLE);
  426. lv_imagebutton_set_src(ui->screen_main_imgbtn_auto, LV_IMAGEBUTTON_STATE_RELEASED, &_auto_off_RGB565A8_80x80, NULL, NULL);
  427. lv_imagebutton_set_src(ui->screen_main_imgbtn_auto, LV_IMAGEBUTTON_STATE_PRESSED, &_auto_on_RGB565A8_80x80, NULL, NULL);
  428. lv_imagebutton_set_src(ui->screen_main_imgbtn_auto, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_auto_on_RGB565A8_80x80, NULL, NULL);
  429. ui->screen_main_imgbtn_auto_label = lv_label_create(ui->screen_main_imgbtn_auto);
  430. lv_label_set_text(ui->screen_main_imgbtn_auto_label, "");
  431. lv_label_set_long_mode(ui->screen_main_imgbtn_auto_label, LV_LABEL_LONG_WRAP);
  432. lv_obj_align(ui->screen_main_imgbtn_auto_label, LV_ALIGN_CENTER, 0, 0);
  433. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_auto, 0, LV_STATE_DEFAULT);
  434. //Write style for screen_main_imgbtn_auto, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  435. lv_obj_set_style_text_color(ui->screen_main_imgbtn_auto, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  436. lv_obj_set_style_text_font(ui->screen_main_imgbtn_auto, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  437. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  438. lv_obj_set_style_text_align(ui->screen_main_imgbtn_auto, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  439. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  440. //Write style for screen_main_imgbtn_auto, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  441. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  442. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  443. lv_obj_set_style_text_color(ui->screen_main_imgbtn_auto, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  444. lv_obj_set_style_text_font(ui->screen_main_imgbtn_auto, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  445. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  446. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  447. //Write style for screen_main_imgbtn_auto, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  448. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  449. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  450. lv_obj_set_style_text_color(ui->screen_main_imgbtn_auto, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  451. lv_obj_set_style_text_font(ui->screen_main_imgbtn_auto, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  452. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  453. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  454. //Write style for screen_main_imgbtn_auto, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  455. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  456. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  457. //Write codes screen_main_imgbtn_xf
  458. ui->screen_main_imgbtn_xf = lv_imagebutton_create(ui->screen_main_cont_mode);
  459. lv_obj_set_pos(ui->screen_main_imgbtn_xf, 214, -1);
  460. lv_obj_set_size(ui->screen_main_imgbtn_xf, 80, 80);
  461. lv_obj_add_flag(ui->screen_main_imgbtn_xf, LV_OBJ_FLAG_EVENT_BUBBLE);
  462. lv_obj_add_flag(ui->screen_main_imgbtn_xf, LV_OBJ_FLAG_CHECKABLE);
  463. lv_imagebutton_set_src(ui->screen_main_imgbtn_xf, LV_IMAGEBUTTON_STATE_RELEASED, &_xf_off_RGB565A8_80x80, NULL, NULL);
  464. lv_imagebutton_set_src(ui->screen_main_imgbtn_xf, LV_IMAGEBUTTON_STATE_PRESSED, &_xf_on_RGB565A8_80x80, NULL, NULL);
  465. lv_imagebutton_set_src(ui->screen_main_imgbtn_xf, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_xf_on_RGB565A8_80x80, NULL, NULL);
  466. ui->screen_main_imgbtn_xf_label = lv_label_create(ui->screen_main_imgbtn_xf);
  467. lv_label_set_text(ui->screen_main_imgbtn_xf_label, "");
  468. lv_label_set_long_mode(ui->screen_main_imgbtn_xf_label, LV_LABEL_LONG_WRAP);
  469. lv_obj_align(ui->screen_main_imgbtn_xf_label, LV_ALIGN_CENTER, 0, 0);
  470. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_xf, 0, LV_STATE_DEFAULT);
  471. //Write style for screen_main_imgbtn_xf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  472. lv_obj_set_style_text_color(ui->screen_main_imgbtn_xf, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  473. lv_obj_set_style_text_font(ui->screen_main_imgbtn_xf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  474. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  475. lv_obj_set_style_text_align(ui->screen_main_imgbtn_xf, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  476. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  477. //Write style for screen_main_imgbtn_xf, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  478. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  479. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  480. lv_obj_set_style_text_color(ui->screen_main_imgbtn_xf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  481. lv_obj_set_style_text_font(ui->screen_main_imgbtn_xf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  482. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  483. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  484. //Write style for screen_main_imgbtn_xf, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  485. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  486. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  487. lv_obj_set_style_text_color(ui->screen_main_imgbtn_xf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  488. lv_obj_set_style_text_font(ui->screen_main_imgbtn_xf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  489. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  490. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  491. //Write style for screen_main_imgbtn_xf, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  492. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  493. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  494. //Write codes screen_main_imgbtn_js
  495. ui->screen_main_imgbtn_js = lv_imagebutton_create(ui->screen_main_cont_mode);
  496. lv_obj_set_pos(ui->screen_main_imgbtn_js, 107, 0);
  497. lv_obj_set_size(ui->screen_main_imgbtn_js, 80, 80);
  498. lv_obj_add_flag(ui->screen_main_imgbtn_js, LV_OBJ_FLAG_EVENT_BUBBLE);
  499. lv_obj_add_flag(ui->screen_main_imgbtn_js, LV_OBJ_FLAG_CHECKABLE);
  500. lv_imagebutton_set_src(ui->screen_main_imgbtn_js, LV_IMAGEBUTTON_STATE_RELEASED, &_js_off_RGB565A8_80x80, NULL, NULL);
  501. lv_imagebutton_set_src(ui->screen_main_imgbtn_js, LV_IMAGEBUTTON_STATE_PRESSED, &_js_on_RGB565A8_80x80, NULL, NULL);
  502. lv_imagebutton_set_src(ui->screen_main_imgbtn_js, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_js_on_RGB565A8_80x80, NULL, NULL);
  503. ui->screen_main_imgbtn_js_label = lv_label_create(ui->screen_main_imgbtn_js);
  504. lv_label_set_text(ui->screen_main_imgbtn_js_label, "");
  505. lv_label_set_long_mode(ui->screen_main_imgbtn_js_label, LV_LABEL_LONG_WRAP);
  506. lv_obj_align(ui->screen_main_imgbtn_js_label, LV_ALIGN_CENTER, 0, 0);
  507. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_js, 0, LV_STATE_DEFAULT);
  508. //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  509. lv_obj_set_style_text_color(ui->screen_main_imgbtn_js, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  510. lv_obj_set_style_text_font(ui->screen_main_imgbtn_js, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  511. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  512. lv_obj_set_style_text_align(ui->screen_main_imgbtn_js, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  513. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  514. //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  515. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  516. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  517. lv_obj_set_style_text_color(ui->screen_main_imgbtn_js, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  518. lv_obj_set_style_text_font(ui->screen_main_imgbtn_js, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  519. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  520. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  521. //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  522. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  523. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  524. lv_obj_set_style_text_color(ui->screen_main_imgbtn_js, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  525. lv_obj_set_style_text_font(ui->screen_main_imgbtn_js, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  526. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  527. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  528. //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  529. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  530. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  531. //Write codes screen_main_imgbtn_nxh
  532. ui->screen_main_imgbtn_nxh = lv_imagebutton_create(ui->screen_main_cont_mode);
  533. lv_obj_set_pos(ui->screen_main_imgbtn_nxh, 0, 0);
  534. lv_obj_set_size(ui->screen_main_imgbtn_nxh, 80, 80);
  535. lv_obj_add_flag(ui->screen_main_imgbtn_nxh, LV_OBJ_FLAG_EVENT_BUBBLE);
  536. lv_obj_add_flag(ui->screen_main_imgbtn_nxh, LV_OBJ_FLAG_CHECKABLE);
  537. lv_imagebutton_set_src(ui->screen_main_imgbtn_nxh, LV_IMAGEBUTTON_STATE_RELEASED, &_nxh_off_RGB565A8_80x80, NULL, NULL);
  538. lv_imagebutton_set_src(ui->screen_main_imgbtn_nxh, LV_IMAGEBUTTON_STATE_PRESSED, &_nxh_on_RGB565A8_80x80, NULL, NULL);
  539. lv_imagebutton_set_src(ui->screen_main_imgbtn_nxh, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_nxh_on_RGB565A8_80x80, NULL, NULL);
  540. ui->screen_main_imgbtn_nxh_label = lv_label_create(ui->screen_main_imgbtn_nxh);
  541. lv_label_set_text(ui->screen_main_imgbtn_nxh_label, "");
  542. lv_label_set_long_mode(ui->screen_main_imgbtn_nxh_label, LV_LABEL_LONG_WRAP);
  543. lv_obj_align(ui->screen_main_imgbtn_nxh_label, LV_ALIGN_CENTER, 0, 0);
  544. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_nxh, 0, LV_STATE_DEFAULT);
  545. //Write style for screen_main_imgbtn_nxh, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  546. lv_obj_set_style_text_color(ui->screen_main_imgbtn_nxh, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  547. lv_obj_set_style_text_font(ui->screen_main_imgbtn_nxh, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  548. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  549. lv_obj_set_style_text_align(ui->screen_main_imgbtn_nxh, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  550. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  551. //Write style for screen_main_imgbtn_nxh, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  552. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  553. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  554. lv_obj_set_style_text_color(ui->screen_main_imgbtn_nxh, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  555. lv_obj_set_style_text_font(ui->screen_main_imgbtn_nxh, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  556. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  557. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  558. //Write style for screen_main_imgbtn_nxh, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  559. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  560. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  561. lv_obj_set_style_text_color(ui->screen_main_imgbtn_nxh, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  562. lv_obj_set_style_text_font(ui->screen_main_imgbtn_nxh, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  563. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  564. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  565. //Write style for screen_main_imgbtn_nxh, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  566. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  567. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  568. //Write codes screen_main_imgbtn_power
  569. ui->screen_main_imgbtn_power = lv_imagebutton_create(ui->screen_main);
  570. lv_obj_set_pos(ui->screen_main_imgbtn_power, 35, 32);
  571. lv_obj_set_size(ui->screen_main_imgbtn_power, 50, 50);
  572. lv_obj_add_flag(ui->screen_main_imgbtn_power, LV_OBJ_FLAG_CHECKABLE);
  573. lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_RELEASED, &_power_RGB565A8_50x50, NULL, NULL);
  574. lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_PRESSED, &_power_open_RGB565A8_50x50, NULL, NULL);
  575. lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_power_open_RGB565A8_50x50, NULL, NULL);
  576. ui->screen_main_imgbtn_power_label = lv_label_create(ui->screen_main_imgbtn_power);
  577. lv_label_set_text(ui->screen_main_imgbtn_power_label, "");
  578. lv_label_set_long_mode(ui->screen_main_imgbtn_power_label, LV_LABEL_LONG_WRAP);
  579. lv_obj_align(ui->screen_main_imgbtn_power_label, LV_ALIGN_CENTER, 0, 0);
  580. lv_obj_set_style_pad_all(ui->screen_main_imgbtn_power, 0, LV_STATE_DEFAULT);
  581. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  582. lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  583. lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  584. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  585. lv_obj_set_style_text_align(ui->screen_main_imgbtn_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  586. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  587. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
  588. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  589. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  590. lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
  591. lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
  592. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
  593. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
  594. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
  595. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  596. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  597. lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
  598. lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
  599. lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
  600. lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
  601. //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
  602. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  603. lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
  604. //Write codes screen_main_cont_speedset
  605. ui->screen_main_cont_speedset = lv_obj_create(ui->screen_main);
  606. lv_obj_set_pos(ui->screen_main_cont_speedset, 35, 95);
  607. lv_obj_set_size(ui->screen_main_cont_speedset, 43, 248);
  608. lv_obj_set_scrollbar_mode(ui->screen_main_cont_speedset, LV_SCROLLBAR_MODE_OFF);
  609. //Write style for screen_main_cont_speedset, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  610. lv_obj_set_style_border_width(ui->screen_main_cont_speedset, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  611. lv_obj_set_style_border_opa(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  612. lv_obj_set_style_border_color(ui->screen_main_cont_speedset, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  613. lv_obj_set_style_border_side(ui->screen_main_cont_speedset, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  614. lv_obj_set_style_radius(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  615. lv_obj_set_style_bg_opa(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  616. lv_obj_set_style_pad_top(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  617. lv_obj_set_style_pad_bottom(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  618. lv_obj_set_style_pad_left(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  619. lv_obj_set_style_pad_right(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  620. lv_obj_set_style_shadow_width(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  621. //Write codes screen_main_slider_speedSet_sign
  622. ui->screen_main_slider_speedSet_sign = lv_slider_create(ui->screen_main_cont_speedset);
  623. lv_obj_set_pos(ui->screen_main_slider_speedSet_sign, 0, 0);
  624. lv_obj_set_size(ui->screen_main_slider_speedSet_sign, 40, 245);
  625. lv_slider_set_range(ui->screen_main_slider_speedSet_sign, 0, 100);
  626. lv_slider_set_mode(ui->screen_main_slider_speedSet_sign, LV_SLIDER_MODE_NORMAL);
  627. lv_slider_set_value(ui->screen_main_slider_speedSet_sign, 40, LV_ANIM_OFF);
  628. //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  629. lv_obj_set_style_bg_opa(ui->screen_main_slider_speedSet_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  630. lv_obj_set_style_bg_color(ui->screen_main_slider_speedSet_sign, lv_color_hex(0x565B6E), LV_PART_MAIN|LV_STATE_DEFAULT);
  631. lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_speedSet_sign, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  632. lv_obj_set_style_radius(ui->screen_main_slider_speedSet_sign, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  633. lv_obj_set_style_outline_width(ui->screen_main_slider_speedSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  634. lv_obj_set_style_shadow_width(ui->screen_main_slider_speedSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  635. //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
  636. lv_obj_set_style_shadow_width(ui->screen_main_slider_speedSet_sign, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
  637. //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  638. lv_obj_set_style_bg_opa(ui->screen_main_slider_speedSet_sign, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  639. lv_obj_set_style_bg_color(ui->screen_main_slider_speedSet_sign, lv_color_hex(0x0ACF7A), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  640. lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_speedSet_sign, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  641. lv_obj_set_style_radius(ui->screen_main_slider_speedSet_sign, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  642. //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  643. lv_obj_set_style_bg_opa(ui->screen_main_slider_speedSet_sign, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  644. lv_obj_set_style_radius(ui->screen_main_slider_speedSet_sign, 50, LV_PART_KNOB|LV_STATE_DEFAULT);
  645. //Write codes screen_main_line_2
  646. ui->screen_main_line_2 = lv_line_create(ui->screen_main_cont_speedset);
  647. lv_obj_set_pos(ui->screen_main_line_2, 1, 148);
  648. lv_obj_set_size(ui->screen_main_line_2, 37, 48);
  649. static lv_point_precise_t screen_main_line_2[] = {{0, 0},{180, 0}};
  650. lv_line_set_points(ui->screen_main_line_2, screen_main_line_2, 2);
  651. //Write style for screen_main_line_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  652. lv_obj_set_style_line_width(ui->screen_main_line_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  653. lv_obj_set_style_line_color(ui->screen_main_line_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  654. lv_obj_set_style_line_opa(ui->screen_main_line_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  655. lv_obj_set_style_line_rounded(ui->screen_main_line_2, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  656. //Write codes screen_main_line_1
  657. ui->screen_main_line_1 = lv_line_create(ui->screen_main_cont_speedset);
  658. lv_obj_set_pos(ui->screen_main_line_1, 1, 199);
  659. lv_obj_set_size(ui->screen_main_line_1, 37, 48);
  660. static lv_point_precise_t screen_main_line_1[] = {{0, 0},{180, 0}};
  661. lv_line_set_points(ui->screen_main_line_1, screen_main_line_1, 2);
  662. //Write style for screen_main_line_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  663. lv_obj_set_style_line_width(ui->screen_main_line_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  664. lv_obj_set_style_line_color(ui->screen_main_line_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  665. lv_obj_set_style_line_opa(ui->screen_main_line_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  666. lv_obj_set_style_line_rounded(ui->screen_main_line_1, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  667. //Write codes screen_main_line_3
  668. ui->screen_main_line_3 = lv_line_create(ui->screen_main_cont_speedset);
  669. lv_obj_set_pos(ui->screen_main_line_3, 1, 48);
  670. lv_obj_set_size(ui->screen_main_line_3, 37, 48);
  671. static lv_point_precise_t screen_main_line_3[] = {{0, 0},{180, 0}};
  672. lv_line_set_points(ui->screen_main_line_3, screen_main_line_3, 2);
  673. //Write style for screen_main_line_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  674. lv_obj_set_style_line_width(ui->screen_main_line_3, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  675. lv_obj_set_style_line_color(ui->screen_main_line_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  676. lv_obj_set_style_line_opa(ui->screen_main_line_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  677. lv_obj_set_style_line_rounded(ui->screen_main_line_3, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  678. //Write codes screen_main_line_5
  679. ui->screen_main_line_5 = lv_line_create(ui->screen_main_cont_speedset);
  680. lv_obj_set_pos(ui->screen_main_line_5, 1, 97);
  681. lv_obj_set_size(ui->screen_main_line_5, 37, 48);
  682. static lv_point_precise_t screen_main_line_5[] = {{0, 0},{180, 0}};
  683. lv_line_set_points(ui->screen_main_line_5, screen_main_line_5, 2);
  684. //Write style for screen_main_line_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  685. lv_obj_set_style_line_width(ui->screen_main_line_5, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  686. lv_obj_set_style_line_color(ui->screen_main_line_5, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  687. lv_obj_set_style_line_opa(ui->screen_main_line_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  688. lv_obj_set_style_line_rounded(ui->screen_main_line_5, true, LV_PART_MAIN|LV_STATE_DEFAULT);
  689. //Write codes screen_main_label_spedSet_vul
  690. ui->screen_main_label_spedSet_vul = lv_label_create(ui->screen_main_cont_speedset);
  691. lv_obj_set_pos(ui->screen_main_label_spedSet_vul, 10, 25);
  692. lv_obj_set_size(ui->screen_main_label_spedSet_vul, 24, 14);
  693. lv_label_set_text(ui->screen_main_label_spedSet_vul, "2档");
  694. lv_label_set_long_mode(ui->screen_main_label_spedSet_vul, LV_LABEL_LONG_WRAP);
  695. //Write style for screen_main_label_spedSet_vul, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  696. lv_obj_set_style_border_width(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  697. lv_obj_set_style_radius(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  698. lv_obj_set_style_text_color(ui->screen_main_label_spedSet_vul, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  699. lv_obj_set_style_text_font(ui->screen_main_label_spedSet_vul, &lv_font_Alibaba_PuHuiTi_Medium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  700. lv_obj_set_style_text_opa(ui->screen_main_label_spedSet_vul, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  701. lv_obj_set_style_text_letter_space(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  702. lv_obj_set_style_text_line_space(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  703. lv_obj_set_style_text_align(ui->screen_main_label_spedSet_vul, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
  704. lv_obj_set_style_bg_opa(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  705. lv_obj_set_style_pad_top(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  706. lv_obj_set_style_pad_right(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  707. lv_obj_set_style_pad_bottom(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  708. lv_obj_set_style_pad_left(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  709. lv_obj_set_style_shadow_width(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  710. //Write codes screen_main_label_1
  711. ui->screen_main_label_1 = lv_label_create(ui->screen_main_cont_speedset);
  712. lv_obj_set_pos(ui->screen_main_label_1, 10, 215);
  713. lv_obj_set_size(ui->screen_main_label_1, 20, 20);
  714. lv_label_set_text(ui->screen_main_label_1, "");
  715. lv_label_set_long_mode(ui->screen_main_label_1, LV_LABEL_LONG_WRAP);
  716. //Write style for screen_main_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  717. lv_obj_set_style_border_width(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  718. lv_obj_set_style_radius(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  719. lv_obj_set_style_text_color(ui->screen_main_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  720. lv_obj_set_style_text_font(ui->screen_main_label_1, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  721. lv_obj_set_style_text_opa(ui->screen_main_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  722. lv_obj_set_style_text_letter_space(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  723. lv_obj_set_style_text_line_space(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  724. lv_obj_set_style_text_align(ui->screen_main_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  725. lv_obj_set_style_bg_opa(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  726. lv_obj_set_style_pad_top(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  727. lv_obj_set_style_pad_right(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  728. lv_obj_set_style_pad_bottom(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  729. lv_obj_set_style_pad_left(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  730. lv_obj_set_style_bg_image_src(ui->screen_main_label_1, &_speed_RGB565A8_20x20, LV_PART_MAIN|LV_STATE_DEFAULT);
  731. lv_obj_set_style_bg_image_opa(ui->screen_main_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  732. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  733. lv_obj_set_style_shadow_width(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  734. //Write codes screen_main_cont_humSet
  735. ui->screen_main_cont_humSet = lv_obj_create(ui->screen_main);
  736. lv_obj_set_pos(ui->screen_main_cont_humSet, 405, 95);
  737. lv_obj_set_size(ui->screen_main_cont_humSet, 43, 248);
  738. lv_obj_set_scrollbar_mode(ui->screen_main_cont_humSet, LV_SCROLLBAR_MODE_OFF);
  739. //Write style for screen_main_cont_humSet, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  740. lv_obj_set_style_border_width(ui->screen_main_cont_humSet, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
  741. lv_obj_set_style_border_opa(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  742. lv_obj_set_style_border_color(ui->screen_main_cont_humSet, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
  743. lv_obj_set_style_border_side(ui->screen_main_cont_humSet, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
  744. lv_obj_set_style_radius(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  745. lv_obj_set_style_bg_opa(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  746. lv_obj_set_style_pad_top(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  747. lv_obj_set_style_pad_bottom(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  748. lv_obj_set_style_pad_left(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  749. lv_obj_set_style_pad_right(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  750. lv_obj_set_style_shadow_width(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  751. //Write codes screen_main_slider_humSet_sign
  752. ui->screen_main_slider_humSet_sign = lv_slider_create(ui->screen_main_cont_humSet);
  753. lv_obj_set_pos(ui->screen_main_slider_humSet_sign, 0, 0);
  754. lv_obj_set_size(ui->screen_main_slider_humSet_sign, 40, 245);
  755. lv_slider_set_range(ui->screen_main_slider_humSet_sign, 30, 70);
  756. lv_slider_set_mode(ui->screen_main_slider_humSet_sign, LV_SLIDER_MODE_NORMAL);
  757. lv_slider_set_value(ui->screen_main_slider_humSet_sign, 50, LV_ANIM_OFF);
  758. //Write style for screen_main_slider_humSet_sign, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  759. lv_obj_set_style_bg_opa(ui->screen_main_slider_humSet_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  760. lv_obj_set_style_bg_color(ui->screen_main_slider_humSet_sign, lv_color_hex(0x565B6E), LV_PART_MAIN|LV_STATE_DEFAULT);
  761. lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_humSet_sign, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
  762. lv_obj_set_style_radius(ui->screen_main_slider_humSet_sign, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
  763. lv_obj_set_style_outline_width(ui->screen_main_slider_humSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  764. lv_obj_set_style_shadow_width(ui->screen_main_slider_humSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  765. //Write style for screen_main_slider_humSet_sign, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
  766. lv_obj_set_style_shadow_width(ui->screen_main_slider_humSet_sign, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
  767. //Write style for screen_main_slider_humSet_sign, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
  768. lv_obj_set_style_bg_opa(ui->screen_main_slider_humSet_sign, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  769. lv_obj_set_style_bg_color(ui->screen_main_slider_humSet_sign, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
  770. lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_humSet_sign, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  771. lv_obj_set_style_radius(ui->screen_main_slider_humSet_sign, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT);
  772. //Write style for screen_main_slider_humSet_sign, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
  773. lv_obj_set_style_bg_opa(ui->screen_main_slider_humSet_sign, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
  774. lv_obj_set_style_radius(ui->screen_main_slider_humSet_sign, 50, LV_PART_KNOB|LV_STATE_DEFAULT);
  775. //Write codes screen_main_label_2
  776. ui->screen_main_label_2 = lv_label_create(ui->screen_main_cont_humSet);
  777. lv_obj_set_pos(ui->screen_main_label_2, 10, 215);
  778. lv_obj_set_size(ui->screen_main_label_2, 20, 20);
  779. lv_label_set_text(ui->screen_main_label_2, "");
  780. lv_label_set_long_mode(ui->screen_main_label_2, LV_LABEL_LONG_WRAP);
  781. //Write style for screen_main_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  782. lv_obj_set_style_border_width(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  783. lv_obj_set_style_radius(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  784. lv_obj_set_style_text_color(ui->screen_main_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
  785. lv_obj_set_style_text_font(ui->screen_main_label_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  786. lv_obj_set_style_text_opa(ui->screen_main_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  787. lv_obj_set_style_text_letter_space(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  788. lv_obj_set_style_text_line_space(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  789. lv_obj_set_style_text_align(ui->screen_main_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  790. lv_obj_set_style_bg_opa(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  791. lv_obj_set_style_pad_top(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  792. lv_obj_set_style_pad_right(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  793. lv_obj_set_style_pad_bottom(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  794. lv_obj_set_style_pad_left(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  795. lv_obj_set_style_bg_image_src(ui->screen_main_label_2, &_hum_RGB565A8_20x20, LV_PART_MAIN|LV_STATE_DEFAULT);
  796. lv_obj_set_style_bg_image_opa(ui->screen_main_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  797. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  798. lv_obj_set_style_shadow_width(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  799. //Write codes screen_main_label_humSet_vul
  800. ui->screen_main_label_humSet_vul = lv_label_create(ui->screen_main_cont_humSet);
  801. lv_obj_set_pos(ui->screen_main_label_humSet_vul, -2, 25);
  802. lv_obj_set_size(ui->screen_main_label_humSet_vul, 36, 14);
  803. lv_label_set_text(ui->screen_main_label_humSet_vul, "24%");
  804. lv_label_set_long_mode(ui->screen_main_label_humSet_vul, LV_LABEL_LONG_WRAP);
  805. //Write style for screen_main_label_humSet_vul, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  806. lv_obj_set_style_border_width(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  807. lv_obj_set_style_radius(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  808. lv_obj_set_style_text_color(ui->screen_main_label_humSet_vul, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  809. lv_obj_set_style_text_font(ui->screen_main_label_humSet_vul, &lv_font_Alibaba_PuHuiTi_Medium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
  810. lv_obj_set_style_text_opa(ui->screen_main_label_humSet_vul, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  811. lv_obj_set_style_text_letter_space(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  812. lv_obj_set_style_text_line_space(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  813. lv_obj_set_style_text_align(ui->screen_main_label_humSet_vul, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
  814. lv_obj_set_style_bg_opa(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  815. lv_obj_set_style_pad_top(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  816. lv_obj_set_style_pad_right(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  817. lv_obj_set_style_pad_bottom(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  818. lv_obj_set_style_pad_left(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  819. lv_obj_set_style_shadow_width(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  820. //Write codes screen_main_lab_err
  821. ui->screen_main_lab_err = lv_label_create(ui->screen_main);
  822. lv_obj_set_pos(ui->screen_main_lab_err, 327, 7);
  823. lv_obj_set_size(ui->screen_main_lab_err, 32, 32);
  824. lv_obj_add_flag(ui->screen_main_lab_err, LV_OBJ_FLAG_HIDDEN);
  825. lv_label_set_text(ui->screen_main_lab_err, "");
  826. lv_label_set_long_mode(ui->screen_main_lab_err, LV_LABEL_LONG_WRAP);
  827. //Write style for screen_main_lab_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  828. lv_obj_set_style_border_width(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  829. lv_obj_set_style_radius(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  830. lv_obj_set_style_text_color(ui->screen_main_lab_err, lv_color_hex(0xfa052b), LV_PART_MAIN|LV_STATE_DEFAULT);
  831. lv_obj_set_style_text_font(ui->screen_main_lab_err, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  832. lv_obj_set_style_text_opa(ui->screen_main_lab_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  833. lv_obj_set_style_text_letter_space(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  834. lv_obj_set_style_text_line_space(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  835. lv_obj_set_style_text_align(ui->screen_main_lab_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  836. lv_obj_set_style_bg_opa(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  837. lv_obj_set_style_pad_top(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  838. lv_obj_set_style_pad_right(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  839. lv_obj_set_style_pad_bottom(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  840. lv_obj_set_style_pad_left(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  841. lv_obj_set_style_shadow_width(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  842. //Write codes screen_main_lab_485_err
  843. ui->screen_main_lab_485_err = lv_label_create(ui->screen_main);
  844. lv_obj_set_pos(ui->screen_main_lab_485_err, 360, 7);
  845. lv_obj_set_size(ui->screen_main_lab_485_err, 32, 32);
  846. lv_obj_add_flag(ui->screen_main_lab_485_err, LV_OBJ_FLAG_HIDDEN);
  847. lv_label_set_text(ui->screen_main_lab_485_err, "");
  848. lv_label_set_long_mode(ui->screen_main_lab_485_err, LV_LABEL_LONG_WRAP);
  849. //Write style for screen_main_lab_485_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  850. lv_obj_set_style_border_width(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  851. lv_obj_set_style_radius(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  852. lv_obj_set_style_text_color(ui->screen_main_lab_485_err, lv_color_hex(0xf7da00), LV_PART_MAIN|LV_STATE_DEFAULT);
  853. lv_obj_set_style_text_font(ui->screen_main_lab_485_err, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  854. lv_obj_set_style_text_opa(ui->screen_main_lab_485_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  855. lv_obj_set_style_text_letter_space(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  856. lv_obj_set_style_text_line_space(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  857. lv_obj_set_style_text_align(ui->screen_main_lab_485_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  858. lv_obj_set_style_bg_opa(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  859. lv_obj_set_style_pad_top(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  860. lv_obj_set_style_pad_right(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  861. lv_obj_set_style_pad_bottom(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  862. lv_obj_set_style_pad_left(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  863. lv_obj_set_style_shadow_width(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  864. //Write codes screen_main_label_wifi
  865. ui->screen_main_label_wifi = lv_label_create(ui->screen_main);
  866. lv_obj_set_pos(ui->screen_main_label_wifi, 427, 2);
  867. lv_obj_set_size(ui->screen_main_label_wifi, 30, 30);
  868. lv_obj_add_flag(ui->screen_main_label_wifi, LV_OBJ_FLAG_HIDDEN);
  869. lv_label_set_text(ui->screen_main_label_wifi, "");
  870. lv_label_set_long_mode(ui->screen_main_label_wifi, LV_LABEL_LONG_WRAP);
  871. //Write style for screen_main_label_wifi, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  872. lv_obj_set_style_border_width(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  873. lv_obj_set_style_radius(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  874. lv_obj_set_style_text_color(ui->screen_main_label_wifi, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  875. lv_obj_set_style_text_font(ui->screen_main_label_wifi, &lv_font_iconfont_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  876. lv_obj_set_style_text_opa(ui->screen_main_label_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  877. lv_obj_set_style_text_letter_space(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  878. lv_obj_set_style_text_line_space(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  879. lv_obj_set_style_text_align(ui->screen_main_label_wifi, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  880. lv_obj_set_style_bg_opa(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  881. lv_obj_set_style_pad_top(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  882. lv_obj_set_style_pad_right(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  883. lv_obj_set_style_pad_bottom(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  884. lv_obj_set_style_pad_left(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  885. lv_obj_set_style_bg_image_src(ui->screen_main_label_wifi, &_WiFiruo_RGB565A8_30x30, LV_PART_MAIN|LV_STATE_DEFAULT);
  886. lv_obj_set_style_bg_image_opa(ui->screen_main_label_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  887. lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  888. lv_obj_set_style_shadow_width(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  889. //Write codes screen_main_label_19
  890. ui->screen_main_label_19 = lv_label_create(ui->screen_main);
  891. lv_obj_set_pos(ui->screen_main_label_19, 379, 40);
  892. lv_obj_set_size(ui->screen_main_label_19, 100, 32);
  893. lv_obj_add_flag(ui->screen_main_label_19, LV_OBJ_FLAG_HIDDEN);
  894. lv_label_set_text(ui->screen_main_label_19, "");
  895. lv_label_set_long_mode(ui->screen_main_label_19, LV_LABEL_LONG_WRAP);
  896. //Write style for screen_main_label_19, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  897. lv_obj_set_style_border_width(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  898. lv_obj_set_style_radius(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  899. lv_obj_set_style_text_color(ui->screen_main_label_19, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  900. lv_obj_set_style_text_font(ui->screen_main_label_19, &lv_font_iconfont_16, LV_PART_MAIN|LV_STATE_DEFAULT);
  901. lv_obj_set_style_text_opa(ui->screen_main_label_19, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  902. lv_obj_set_style_text_letter_space(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  903. lv_obj_set_style_text_line_space(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  904. lv_obj_set_style_text_align(ui->screen_main_label_19, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  905. lv_obj_set_style_bg_opa(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  906. lv_obj_set_style_pad_top(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  907. lv_obj_set_style_pad_right(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  908. lv_obj_set_style_pad_bottom(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  909. lv_obj_set_style_pad_left(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  910. lv_obj_set_style_shadow_width(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  911. //Write codes screen_main_lab_cloud1
  912. ui->screen_main_lab_cloud1 = lv_label_create(ui->screen_main);
  913. lv_obj_set_pos(ui->screen_main_lab_cloud1, 393, 7);
  914. lv_obj_set_size(ui->screen_main_lab_cloud1, 32, 32);
  915. lv_obj_add_flag(ui->screen_main_lab_cloud1, LV_OBJ_FLAG_HIDDEN);
  916. lv_label_set_text(ui->screen_main_lab_cloud1, "");
  917. lv_label_set_long_mode(ui->screen_main_lab_cloud1, LV_LABEL_LONG_WRAP);
  918. //Write style for screen_main_lab_cloud1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  919. lv_obj_set_style_border_width(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  920. lv_obj_set_style_radius(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  921. lv_obj_set_style_text_color(ui->screen_main_lab_cloud1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
  922. lv_obj_set_style_text_font(ui->screen_main_lab_cloud1, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  923. lv_obj_set_style_text_opa(ui->screen_main_lab_cloud1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  924. lv_obj_set_style_text_letter_space(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  925. lv_obj_set_style_text_line_space(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  926. lv_obj_set_style_text_align(ui->screen_main_lab_cloud1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  927. lv_obj_set_style_bg_opa(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  928. lv_obj_set_style_pad_top(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  929. lv_obj_set_style_pad_right(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  930. lv_obj_set_style_pad_bottom(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  931. lv_obj_set_style_pad_left(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  932. lv_obj_set_style_shadow_width(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  933. //Write codes screen_main_label_filter_error
  934. ui->screen_main_label_filter_error = lv_label_create(ui->screen_main);
  935. lv_obj_set_pos(ui->screen_main_label_filter_error, 294, 7);
  936. lv_obj_set_size(ui->screen_main_label_filter_error, 32, 32);
  937. lv_obj_add_flag(ui->screen_main_label_filter_error, LV_OBJ_FLAG_HIDDEN);
  938. lv_label_set_text(ui->screen_main_label_filter_error, "");
  939. lv_label_set_long_mode(ui->screen_main_label_filter_error, LV_LABEL_LONG_WRAP);
  940. //Write style for screen_main_label_filter_error, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
  941. lv_obj_set_style_border_width(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  942. lv_obj_set_style_radius(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  943. lv_obj_set_style_text_color(ui->screen_main_label_filter_error, lv_color_hex(0xff6500), LV_PART_MAIN|LV_STATE_DEFAULT);
  944. lv_obj_set_style_text_font(ui->screen_main_label_filter_error, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
  945. lv_obj_set_style_text_opa(ui->screen_main_label_filter_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
  946. lv_obj_set_style_text_letter_space(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  947. lv_obj_set_style_text_line_space(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  948. lv_obj_set_style_text_align(ui->screen_main_label_filter_error, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
  949. lv_obj_set_style_bg_opa(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  950. lv_obj_set_style_pad_top(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  951. lv_obj_set_style_pad_right(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  952. lv_obj_set_style_pad_bottom(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  953. lv_obj_set_style_pad_left(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  954. lv_obj_set_style_shadow_width(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
  955. //The custom code of screen_main.
  956. lv_obj_clear_flag(ui->screen_main_arc_AIQ, LV_OBJ_FLAG_CLICKABLE);
  957. lv_arc_set_range(ui->screen_main_arc_AIQ, 0, 500);
  958. lv_arc_set_value(ui->screen_main_arc_AIQ, 500);
  959. lv_obj_remove_flag(ui->screen_main_slider_humSet_sign, LV_OBJ_FLAG_GESTURE_BUBBLE);
  960. lv_obj_remove_flag(ui->screen_main_slider_speedSet_sign, LV_OBJ_FLAG_GESTURE_BUBBLE);
  961. lv_label_set_text_fmt(ui->screen_main_label_humSet_vul, "%d%%", xf_status.set_max_hum);
  962. lv_slider_set_value(ui->screen_main_slider_speedSet_sign, xf_status.fan_speed*20, LV_ANIM_ON);
  963. lv_label_set_text_fmt(ui->screen_main_label_spedSet_vul, "%d档",xf_status.fan_speed);
  964. lv_slider_set_value(ui->screen_main_slider_humSet_sign, xf_status.set_max_hum, LV_ANIM_ON);
  965. set_xf_mode(ui, xf_status.mode);
  966. xf_set_power(true);
  967. // 设置电源状态
  968. lv_obj_add_state(ui->screen_main_imgbtn_power, xf_status.power == 1 ? LV_STATE_CHECKED : LV_STATE_DEFAULT);
  969. //Update current screen layout.
  970. lv_obj_update_layout(ui->screen_main);
  971. //Init events for screen.
  972. events_init_screen_main(ui);
  973. }