Files
mixly3/boards/default/micropython_esp32s3/examples/MixGo Sant/智能物联从体验到精通/4年级/5-2-1 平衡大挑战-碰到边缘失败.mix
2025-12-31 09:45:01 +08:00

1 line
8.6 KiB
XML

<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控自强" shown="block"><block type="variables_set" id="cOjs,=7LUd_v=do6K`p?" x="-1516" y="-927"><field name="VAR">x</field><value name="VALUE"><block type="math_number" id="#(D1my6k=[kLEW,=A-]1"><field name="NUM">6</field></block></value><next><block type="variables_set" id="?Z/KJ+hng!$e3nh`|ure"><field name="VAR">y</field><value name="VALUE"><block type="math_number" id="_#HWbgpsje/Nn6j,|A]D"><field name="NUM">6</field></block></value><next><block type="controls_whileUntil" id=")HYW,7WO`Hu7lB+9ykYF"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="h8/t*UqIG9ae`oW8^{wr"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="O?^UYPjx5uUe|wPSP},H"><value name="IF0"><block type="logic_compare" id="f~CQ}R8|lT;,Fqs27RW)"><field name="OP">LT</field><value name="A"><block type="sensor_get_acceleration" id="HK6jyynVll+WY[-cYZ;z"><field name="key">[0]</field></block></value><value name="B"><block type="math_number" id="$Wn*b/WO*NYB-R#:-IwP"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="@(dK]#/C4oeh`_dz|f7,"><field name="OP">MINUS</field><value name="A"><shadow type="variables_get" id="a?QxEx.T(^^SJ|Gp#(qJ"><field name="VAR">x</field></shadow></value><value name="B"><shadow type="math_number" id="P#pI?Z)k};kVO:]547`_"><field name="NUM">1</field></shadow></value></block></statement><next><block type="controls_if" id=".yZSwBZrp4ZRpuIRSb(P"><value name="IF0"><block type="logic_compare" id="WDz~6Z^L]uDI;)+?#{{~"><field name="OP">GT</field><value name="A"><block type="sensor_get_acceleration" id="0G?Bt*?V7rAo,/)FU7vv"><field name="key">[0]</field></block></value><value name="B"><block type="math_number" id="B$Yd$C:#|k3ooaWok?9j"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="=E45i=?Fn(e,~l*HT4R$"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="^nP:`PyX{ZciA`!DAH9f"><field name="VAR">x</field></shadow></value><value name="B"><shadow type="math_number" id="/qK)V,iA-+l?V2bYJ#zk"><field name="NUM">1</field></shadow></value></block></statement><next><block type="controls_if" id="uqF,8l{ljy]x;TKm3JBY"><value name="IF0"><block type="logic_compare" id="f*{F;TZ*59WL`=D7{H,j"><field name="OP">LT</field><value name="A"><block type="sensor_get_acceleration" id="akmc4;Xh_sN7SkZzIw_-"><field name="key">[1]</field></block></value><value name="B"><block type="math_number" id="i4J9,Skq43!17=*/BSGL"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="RDvr@1LQi5[t[LHPX#Tt"><field name="OP">MINUS</field><value name="A"><shadow type="variables_get" id="r7XrZJByvf,Pf_X5Thnh"><field name="VAR">y</field></shadow></value><value name="B"><shadow type="math_number" id="LfOm*glLCEL?B7Sxx@sV"><field name="NUM">1</field></shadow></value></block></statement><next><block type="controls_if" id="x0UF;+R2AFs5UG8Y]2~2"><value name="IF0"><block type="logic_compare" id="/u(qyKjDOJ^FUmma?$Z5"><field name="OP">GT</field><value name="A"><block type="sensor_get_acceleration" id="nw`U3dXF*Q{P4Nxi:8ij"><field name="key">[1]</field></block></value><value name="B"><block type="math_number" id="@RE1c9xOK#/2TQI9501I"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="Bi[(wdGF3T#,71wHvGkQ"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="NsAMT5NgozqXa[:~e(0L"><field name="VAR">y</field></shadow></value><value name="B"><shadow type="math_number" id="n:uD0=M|#j:sEa]9*rS9"><field name="NUM">1</field></shadow></value></block></statement><next><block type="controls_if" id="6B;xJCnK{5{G$vv?@*|+"><mutation else="1"></mutation><value name="IF0"><block type="logic_operation" id="0dn)^Ye/HV[09itH$GLO"><field name="OP">AND</field><value name="A"><block type="logic_compare_continous" id="BFSaAEtVm6-Nv==d8ajI"><field name="OP1">LTE</field><field name="OP2">LTE</field><value name="A"><shadow type="math_number" id="TBPlyD3eMLp8sc8z^E82"><field name="NUM">0</field></shadow></value><value name="B"><shadow type="variables_get" id="2D::}Cs5Se9YozmPRQ2H"><field name="VAR">x</field></shadow><block type="variables_get" id="nLC;V;/m)[efSS#YXmCB"><field name="VAR">x</field></block></value><value name="C"><shadow type="math_number" id="|F/AwdQ[U7Acc6Q#NHdf"><field name="NUM">11</field></shadow></value></block></value><value name="B"><block type="logic_compare_continous" id="jNM4VfF)[8)^UDfe/qb2"><field name="OP1">LTE</field><field name="OP2">LTE</field><value name="A"><shadow type="math_number" id="_CkQUI9Bo8CPtTYdQ}#~"><field name="NUM">0</field></shadow></value><value name="B"><shadow type="variables_get" id=":m-n1XMRn]?z/{kr@GS8"><field name="VAR">x</field></shadow><block type="variables_get" id="64=8,}NYiuy}s;0EeLls"><field name="VAR">y</field></block></value><value name="C"><shadow type="math_number" id="`[qJE/s_c|4ec,|le@P-"><field name="NUM">11</field></shadow></value></block></value></block></value><statement name="DO0"><block type="display_clear" id="9`yy=4K3cWoYctQ8q`,T"><value name="boolean"><shadow type="logic_boolean" id="mOG/T*2u8g*z29R3UdGf"><field name="BOOL">FALSE</field></shadow></value><next><block type="onboard_tft_display_shape_circle" id="3zJ,*$;jaiMSN]vY|T$6"><field name="shape">True</field><value name="x"><shadow type="math_number" id="tcsV])#xHkJv[av(#|Q{"><field name="NUM">60</field></shadow><block type="math_arithmetic" id="p7NqL~U_xe|xyURu1KHz"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="[wASI(tD$Lkx|YI+gh`!"><field name="NUM">1</field></shadow><block type="variables_get" id="V#!n#$cr-i?jaQ4~_VDC"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="^/=y~rAap?59QC:4pLoz"><field name="NUM">20</field></shadow></value></block></value><value name="y"><shadow type="math_number" id="n5jg-U=re_FFL{C@c]en"><field name="NUM">60</field></shadow><block type="math_arithmetic" id="[ivBPrmfC*;6c`n$Hj(t"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="Wwtw*(JI~LS[7fYvMhRY"><field name="NUM">1</field></shadow><block type="variables_get" id="IHm@rzt7nKBlM$hq#iCI"><field name="VAR">y</field></block></value><value name="B"><shadow type="math_number" id="FN5F3I1d)GwYLPtQ1?;#"><field name="NUM">20</field></shadow></value></block></value><value name="r"><shadow type="math_number" id="hu~7B_)cqh|d5hy=2^CQ"><field name="NUM">10</field></shadow></value><value name="VAR"><shadow type="tuple_create_with_text_return" id="j/bsgnd(9Ow@c0h4``+5"><field name="TEXT">255,255,0</field></shadow><block type="display_color_seclet" id="p,B2lhmRvnK]1$]M4hp9"><field name="COLOR">#ffffff</field></block></value><value name="boolean"><shadow type="logic_boolean" id="QwF~u+RE}op$_tI$Wuk-"><field name="BOOL">TRUE</field></shadow></value><next><block type="controls_delay_new" id="o+7csCNH$G61W!W{8uha"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="gzM`+?-LTbUmJI+4]LG9"><field name="NUM">0.1</field></shadow></value></block></next></block></next></block></statement><statement name="ELSE"><block type="display_show_image" id="e|fP^sC]{|G(W:AfuoJ("><value name="data"><shadow type="pins_builtinimg" id="QDX-4A0N6?=itq9df40#"><field name="PIN">informatio_picture.NO</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="y/}d;v6M-b#:mbJ1G#Ba"><field name="BOOL">TRUE</field></shadow></value><next><block type="controls_flow_statements" id="~y:~za=K4z~2gFf}tbjs"><field name="FLOW">BREAK</field></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></xml><config>{}</config><code>ZnJvbSBtaXhnb19zYW50IGltcG9ydCBvbmJvYXJkX2FjYwpmcm9tIG1peGdvX3NhbnQgaW1wb3J0IG9uYm9hcmRfdGZ0CmltcG9ydCB0aW1lCmZyb20gaW5mb3JtYXRpb19waWN0dXJlIGltcG9ydCBOTwoKeCA9IDYKeSA9IDYKd2hpbGUgVHJ1ZToKICAgIGlmIG9uYm9hcmRfYWNjLmFjY2VsZXJhdGlvbigpWzBdIDwgMDoKICAgICAgICB4IC09IDEKICAgIGlmIG9uYm9hcmRfYWNjLmFjY2VsZXJhdGlvbigpWzBdID4gMDoKICAgICAgICB4ICs9IDEKICAgIGlmIG9uYm9hcmRfYWNjLmFjY2VsZXJhdGlvbigpWzFdIDwgMDoKICAgICAgICB5IC09IDEKICAgIGlmIG9uYm9hcmRfYWNjLmFjY2VsZXJhdGlvbigpWzFdID4gMDoKICAgICAgICB5ICs9IDEKICAgIGlmIDAgPD0geCA8PSAxMSBhbmQgMCA8PSB5IDw9IDExOgogICAgICAgIG9uYm9hcmRfdGZ0LmZpbGwoMCxzeW5jPUZhbHNlKQogICAgICAgIG9uYm9hcmRfdGZ0LmVsbGlwc2UoKHggKiAyMCksICh5ICogMjApLCAxMCwgMTAsIDB4ZmZmZiwgVHJ1ZSxzeW5jPVRydWUpCiAgICAgICAgdGltZS5zbGVlcCgwLjEpCiAgICBlbHNlOgogICAgICAgIG9uYm9hcmRfdGZ0LmltYWdlKE5PLCBjb2xvcj0weGZmZmYsc3luYz1UcnVlKQogICAgICAgIGJyZWFrCg==</code>