+{"version":"V2.0","versionNumber":"V2.1.2","type":"core2","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__core2_screen","createTime":1722824950443,"x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","size":0,"isSelected":true},{"name":"title0","type":"title","layer":1,"screenId":"builtin","screenName":"","id":"u	^s3=e+JFdXqa","createTime":1722824959179,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"HMI Core2 Test","textOffset":3,"font":"Widgets.FONTS.DejaVu18","isSelected":false},{"name":"label0","type":"label","layer":2,"screenId":"builtin","screenName":"","id":"k0CYIBWhjPYMY46w","createTime":1722824988901,"x":0,"y":81,"color":"#ffffff","backgroundColor":"#222222","text":"Btn enc:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label1","type":"label","layer":3,"screenId":"builtin","screenName":"","id":"cT^ojsQ+_c0=KhbV","createTime":1722824992196,"x":0,"y":129,"color":"#ffffff","backgroundColor":"#222222","text":"Btn A:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label2","type":"label","layer":4,"screenId":"builtin","screenName":"","id":"y=G*m`&hXtA+37S!","createTime":1722824999348,"x":0,"y":176,"color":"#ffffff","backgroundColor":"#222222","text":"Btn B:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label3","type":"label","layer":6,"screenId":"builtin","screenName":"","id":"wF1oE5pQjSBv-M!=","createTime":1722825034891,"x":0,"y":37,"color":"#ffffff","backgroundColor":"#222222","text":"Rotary:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label4","type":"label","layer":6,"screenId":"builtin","screenName":"","id":"yw`a2VIKc*pNp-aI","createTime":1722825093033,"x":173,"y":106,"color":"#ffffff","backgroundColor":"#222222","text":"LED A:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label5","type":"label","layer":7,"screenId":"builtin","screenName":"","id":"gAY0FmbYTtL6-nDO","createTime":1722825135956,"x":173,"y":164,"color":"#ffffff","backgroundColor":"#222222","text":"LED B:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label6","type":"label","layer":8,"screenId":"builtin","screenName":"","id":"gA+45INUXpy91CFQ","createTime":1722825166720,"x":173,"y":41,"color":"#ffffff","backgroundColor":"#222222","text":"Rotary Inc:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","speaker","touch","mic","i2c"]},{"module":["module_hmi"]}],"units":[],"hats":[],"bases":[],"i2cs":[{"id":"i2c0","portType":"A","userPort":[22,21],"freq":"100000","blockId":"uVbuK_(!IX6AeiPjU},("}],"blockly":"<variables><variable id=\"SW!;d)?5ML^E*%Z+NA:O\">led_a_state</variable><variable id=\"/DS@He*DUndRLw/z./}2\">led_b_state</variable><variable id=\"N#IM:zd(kHBfGC:fz|8A\">btn_a_state</variable><variable id=\"_(=D_1TXh50f@32~}3vX\">btn_b_state</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-110\" y=\"-269\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"><next><block type=\"module_hmi_init\" id=\"PzPRXT)`SMP6S9fokRFT\"><field name=\"NAME\">hmi_0</field><value name=\"ADDR\"><shadow type=\"math_number\" id=\"?F/Ggw-!s,.],,{n+OhA\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0x41</field></shadow></value><next><block type=\"module_hmi_set_encoder_value\" id=\"GtdT47^JAA8P!o$H[P,N\"><field name=\"NAME\">hmi_0</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"^RUk@T*(~`N~V$=PscGN\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"-110\" y=\"-70\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"system_m5_update\"><next><block type=\"variables_set\" id=\"r~S()L-2YtgweY-Ek;5v\"><field name=\"VAR\" id=\"SW!;d)?5ML^E*%Z+NA:O\">led_a_state</field><value name=\"VALUE\"><block type=\"module_hmi_get_led_state\" id=\"ofH%P1YHK@c0-`fF-4L8\"><field name=\"NAME\">hmi_0</field><value name=\"LED\"><shadow type=\"module_hmi_led_option\" id=\"`#pLQ2aWUx35EY;Vew?(\"><field name=\"VALUE\">1</field></shadow></value></block></value><next><block type=\"variables_set\" id=\"CR%`D_=DB8n_W)x][ySH\"><field name=\"VAR\" id=\"/DS@He*DUndRLw/z./}2\">led_b_state</field><value name=\"VALUE\"><block type=\"module_hmi_get_led_state\" id=\"k_WEQPM3i3lYiVb+Ku`6\"><field name=\"NAME\">hmi_0</field><value name=\"LED\"><shadow type=\"module_hmi_led_option\" id=\"!Q6g[nuDrIduW#OTsNEy\"><field name=\"VALUE\">2</field></shadow></value></block></value><next><block type=\"variables_set\" id=\"NS.6Zce+?uIVAsoU3jC`\"><field name=\"VAR\" id=\"N#IM:zd(kHBfGC:fz|8A\">btn_a_state</field><value name=\"VALUE\"><block type=\"module_hmi_get_button_state\" id=\"WCs@5*5]s,gy`3^TpD|a\"><field name=\"NAME\">hmi_0</field><field name=\"OPTION\">2</field></block></value><next><block type=\"variables_set\" id=\"V*_v{MB)33d0;(4Fv`)F\"><field name=\"VAR\" id=\"_(=D_1TXh50f@32~}3vX\">btn_b_state</field><value name=\"VALUE\"><block type=\"module_hmi_get_button_state\" id=\"4yZz0|XiX@u25:14}|4g\"><field name=\"NAME\">hmi_0</field><field name=\"OPTION\">3</field></block></value><next><block type=\"label_set_text\" id=\"%N0HrPuq{JSTr.o-amDh\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Ns8_)dH%+3h^D{i+.2L+\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"W3_%62t5UlD!u88hGg{9\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"rYO%/q0kpsyh$cUj,]qf\"><field name=\"TEXT\">Rotary:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_hmi_get_button_state\" id=\"Ka.cYPEv}4KT:V1gdEX^\"><field name=\"NAME\">hmi_0</field><field name=\"OPTION\">1</field></block></value></block></value><next><block type=\"label_set_text\" id=\"QCP]Xf2KVs-/hKH3Tx@T\"><field name=\"NAME\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Ns8_)dH%+3h^D{i+.2L+\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"Hq`O=#EfcNil=wxI4nk|\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"NZxeTzhO11~4G=#{Q@(1\"><field name=\"TEXT\">Btn A:</field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"=#|/7i[*]y%]eX=aV[B2\"><field name=\"VAR\" id=\"N#IM:zd(kHBfGC:fz|8A\">btn_a_state</field></block></value></block></value><next><block type=\"label_set_text\" id=\"t#BXsEBZ!Q^]}PR(oAqZ\"><field name=\"NAME\">label2</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Ns8_)dH%+3h^D{i+.2L+\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"{=f;]NtV:fWbV??F*hLN\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"(.3atg:xjV;6O@])2NA:\"><field name=\"TEXT\">Btn B:</field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"9,6P.vP?3$@%OG^%{61Y\"><field name=\"VAR\" id=\"_(=D_1TXh50f@32~}3vX\">btn_b_state</field></block></value></block></value><next><block type=\"label_set_text\" id=\"2t=`1^F#$:]^.DC-#;hC\"><field name=\"NAME\">label4</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Ns8_)dH%+3h^D{i+.2L+\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"1[0JeKUe6r)TDL+!R6|k\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"Z..YMDkHxwob?kqhYlSB\"><field name=\"TEXT\">LED A:</field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"O4*8-{q!ut{$yuRZVhvY\"><field name=\"VAR\" id=\"SW!;d)?5ML^E*%Z+NA:O\">led_a_state</field></block></value></block></value><next><block type=\"label_set_text\" id=\"N])s}=?:vb,TJy:,d:lc\"><field name=\"NAME\">label5</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Jc#,9gL_GFlyExjt5db;\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"SUf_2KBfGl$Z`Nh,COJl\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"J88TM:F(:uQhq4d(N#:[\"><field name=\"TEXT\">LED B:</field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"4Y4;G+[R0SFh6|h=i)l%\"><field name=\"VAR\" id=\"/DS@He*DUndRLw/z./}2\">led_b_state</field></block></value></block></value><next><block type=\"label_set_text\" id=\"_p+nkP:pb-n?!nq{+r%`\"><field name=\"NAME\">label3</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Jc#,9gL_GFlyExjt5db;\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"G;;~.F1Ga?JImLldx.?g\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"]uB2Q~uRwmdy,(v59WTM\"><field name=\"TEXT\">Enc:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_hmi_get_encoder_value\" id=\"zRs]VF)R~M@byIG8q*/)\"><field name=\"NAME\">hmi_0</field></block></value></block></value><next><block type=\"controls_if\" id=\"RcE7lj,[vA~0/}mUTO)}\"><mutation elseif=\"2\"></mutation><value name=\"IF0\"><block type=\"module_hmi_get_button_state\" id=\"a+@91{GOn5$__BB8_$h$\"><field name=\"NAME\">hmi_0</field><field name=\"OPTION\">1</field></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"/f_oBN.Ugjjc9PZ?N!a!\"><field name=\"NAME\">label6</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Jc#,9gL_GFlyExjt5db;\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"q`k_rbgm4(ORjjGiN34`\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"sN!/=qJS_0qrwo#ILk,I\"><field name=\"TEXT\">Rotary Inc:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_hmi_get_increment_value\" id=\":4Cq1am]TN8zx{9K3A|`\"><field name=\"NAME\">hmi_0</field></block></value></block></value></block></statement><value name=\"IF1\"><block type=\"variables_get\" id=\"i](I+h+f*cAp6X1Mhv3l\"><field name=\"VAR\" id=\"N#IM:zd(kHBfGC:fz|8A\">btn_a_state</field></block></value><statement name=\"DO1\"><block type=\"variables_set\" id=\"kcttClx2tl)EIM!ZKQ2Q\"><field name=\"VAR\" id=\"SW!;d)?5ML^E*%Z+NA:O\">led_a_state</field><value name=\"VALUE\"><block type=\"logic_negate\" id=\"M$,W-VTw8jngrhhcalGY\"><value name=\"BOOL\"><block type=\"variables_get\" id=\"3=_1keC4=Z6l3Hy-RPpy\"><field name=\"VAR\" id=\"SW!;d)?5ML^E*%Z+NA:O\">led_a_state</field></block></value></block></value><next><block type=\"module_hmi_set_led_state\" id=\"f3EUU*26pxBC|31,ChoM\"><field name=\"NAME\">hmi_0</field><value name=\"LED\"><shadow type=\"module_hmi_led_option\" id=\"|!/~}n,Bo4Zwo-D9l[IC\"><field name=\"VALUE\">1</field></shadow></value><value name=\"STATE\"><shadow type=\"module_hmi_state_option\" id=\"KC9}(KoNuDi6)0}{7By[\"><field name=\"VALUE\">0</field></shadow><block type=\"variables_get\" id=\"Q}7qUk|2E^=RDQ(O_(v4\"><field name=\"VAR\" id=\"SW!;d)?5ML^E*%Z+NA:O\">led_a_state</field></block></value></block></next></block></statement><value name=\"IF2\"><block type=\"variables_get\" id=\"$kV}ITnuP/YW*02vW=$F\"><field name=\"VAR\" id=\"_(=D_1TXh50f@32~}3vX\">btn_b_state</field></block></value><statement name=\"DO2\"><block type=\"variables_set\" id=\"){wB(]c42I%qC[Y/LR]B\"><field name=\"VAR\" id=\"/DS@He*DUndRLw/z./}2\">led_b_state</field><value name=\"VALUE\"><block type=\"logic_negate\" id=\"]N3{P~(2#b-%]OOEzo!g\"><value name=\"BOOL\"><block type=\"variables_get\" id=\"SkeE]k|v[gl4na[;Cc(_\"><field name=\"VAR\" id=\"/DS@He*DUndRLw/z./}2\">led_b_state</field></block></value></block></value><next><block type=\"module_hmi_set_led_state\" id=\"E@BBW$|Y}m%}K[o2VF.e\"><field name=\"NAME\">hmi_0</field><value name=\"LED\"><shadow type=\"module_hmi_led_option\" id=\"Cu}TwGuPy^v1wXd(F9CO\"><field name=\"VALUE\">2</field></shadow></value><value name=\"STATE\"><shadow type=\"module_hmi_state_option\" id=\"KC9}(KoNuDi6)0}{7By[\"><field name=\"VALUE\">0</field></shadow><block type=\"variables_get\" id=\"UJ8pi]1Prm}1Fe.2~nw8\"><field name=\"VAR\" id=\"/DS@He*DUndRLw/z./}2\">led_b_state</field></block></value><next><block type=\"module_hmi_reset_encoder_value\" id=\"Tda|DTln#ws]p4hITq_v\"><field name=\"NAME\">hmi_0</field></block></next></block></next></block></statement><next><block type=\"time_sleep_millisecond\" id=\"-Y6]9zndw,`3}L@/42d@\"><value name=\"MS\"><shadow type=\"math_number\" id=\"S(l]L3joerQX`gOgxg;.\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">200</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":320,"height":240,"scale":0.78,"screenName":"","blockId":"","screenColorType":0,"id":"builtin","createTime":1722824950441}],"logicWhenNum":0,"customList":[]}
0 commit comments