Files
mixly3/boards/default/micropython_esp32/examples/MixGo/8-2扫雷法宝.mix
2024-07-23 21:49:42 +08:00

1 line
10 KiB
XML

<xml version="Mixly 2.0 Beta11" board="MixGo" xmlns="http://www.w3.org/1999/xhtml"><block type="actuator_neopixel_init" id="2%hlz}t3H,x9@9gmnd2P" x="605" y="-11"><value name="SUB"><shadow type="variables_get" id="U[_]:9drVF)V!zS}zWk}"><field name="VAR">rgb</field></shadow></value><value name="PIN"><shadow type="pins_digital_pin" id="5:{c`n@D,;@KS4j1Lmj%"><field name="PIN">2</field></shadow></value><value name="LEDCOUNT"><shadow type="math_number" id="8[UJZ*gnBT8~i~}!5H_u"><field name="NUM">1</field></shadow></value><next><block type="controls_whileUntil" id="#SiZa=_sR;#_!rx|w=$h"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id=")=%u$u:I-pB|bY;@99t8"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="system_print" id="hJG%RG#PG8IUe?+2u53}"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="{Y$R_LkA@~/|mKbi*GFM"><field name="TEXT">Mixly</field></shadow><block type="sensor_mpu9250_get_magnetic" id="GLl;@T`:YBuL}e@#F5_E"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="uV_TO]*sL@C1YvqP:v=I"><field name="VAR">mpu</field></shadow></value></block></value><next><block type="controls_if" id="Bu{@V[K3/s64@XtuRMH7"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="2"></mutation><value name="IF0"><block type="logic_compare_continous" id="8q1i.OIG*|Qskd$bu8A5"><field name="OP1">LTE</field><field name="OP2">LT</field><value name="A"><shadow type="math_number" id="2^U#LJ}=!LA8utmOJ,z2"><field name="NUM">0</field></shadow></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="-{tUrxMN8N#RSRE*p`7r"><field name="VAR">x</field></shadow><block type="math_to_int" id="Z]_|i;czajT;z:@Z:6`;"><field name="OP">fabs</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="!eoc[x{DJnfjp]~FBW(n"><field name="NUM">0.998</field></shadow><block type="sensor_mpu9250_get_magnetic" id="=JBT?CMqru!6ztq98b=="><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="4b$VJ.|V,|hcHW9Pj*NY"><field name="VAR">mpu</field></shadow></value></block></value></block></value><value name="C"><shadow type="math_number" id="7u,dUGLAjm!?wn*u?VD`"><field name="NUM">200</field></shadow></value></block></value><statement name="DO0"><block type="display_scroll_string" id="FL`g%x.gQ,D3y8=RvvH7"><value name="data"><shadow type="text" id="GwQ$mhXwWT,nl4@/++7L"><field name="TEXT">level 1</field></shadow></value><next><block type="procedures_callnoreturn" id="L[6S^nm#w!nd@oS{sJuH"><mutation xmlns="http://www.w3.org/1999/xhtml" name="显示等级"><arg name="等级"></arg></mutation><value name="ARG0"><block type="math_number" id="UfuNU,cX8ualN|p,`e9="><field name="NUM">1</field></block></value></block></next></block></statement><value name="IF1"><block type="logic_compare_continous" id="XK7BGz*q)=+BF`$rwBM}"><field name="OP1">LTE</field><field name="OP2">LT</field><value name="A"><shadow type="math_number" id=":-MmkQ3mI;r[9,D}!g(9"><field name="NUM">200</field></shadow></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="-{tUrxMN8N#RSRE*p`7r"><field name="VAR">x</field></shadow><block type="math_to_int" id="7HiStr;z!CW2}q1J~V)J"><field name="OP">fabs</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="!eoc[x{DJnfjp]~FBW(n"><field name="NUM">0.998</field></shadow><block type="sensor_mpu9250_get_magnetic" id="7bY^ve)ul=H9@Flp90zu"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="WF2fbv+=$MB9+qvR,v+f"><field name="VAR">mpu</field></shadow></value></block></value></block></value><value name="C"><shadow type="math_number" id="xbP^aRnVsK62?d+N?@Y("><field name="NUM">400</field></shadow></value></block></value><statement name="DO1"><block type="display_scroll_string" id="?*C5RGM7qjPdS*G5DQh*"><value name="data"><shadow type="text" id="_R(k3u-kaw#pW?k%-g(R"><field name="TEXT">level 2</field></shadow></value><next><block type="procedures_callnoreturn" id="nYg$ofiRqChSC#R2i)X4"><mutation xmlns="http://www.w3.org/1999/xhtml" name="显示等级"><arg name="等级"></arg></mutation><value name="ARG0"><block type="math_number" id="1KdauDTd!$3s2S$OMqd1"><field name="NUM">2</field></block></value></block></next></block></statement><value name="IF2"><block type="logic_compare" id="A`(:+HQrwQ:?XT`phGf["><field name="OP">GTE</field><value name="A"><block type="math_to_int" id="0J%{qQYjS3~9ZKxe~q7O"><field name="OP">fabs</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="!eoc[x{DJnfjp]~FBW(n"><field name="NUM">0.998</field></shadow><block type="sensor_mpu9250_get_magnetic" id="WEUy)ia`p$~J$W%Y*cHW"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="d(3a/nk50-7uq0!PuL68"><field name="VAR">mpu</field></shadow></value></block></value></block></value><value name="B"><block type="math_number" id="`#4`~I_]ET]/[:2))Ge:"><field name="NUM">400</field></block></value></block></value><statement name="DO2"><block type="display_scroll_string" id="cr_t}i.jC-cyQ$9hH¢"><value name="data"><shadow type="text" id="Q(,ZgH+*s)KCJuI1QoWo"><field name="TEXT">level 3</field></shadow></value><next><block type="procedures_callnoreturn" id="Y#^Di*dl*CxTVKrWHL!~"><mutation xmlns="http://www.w3.org/1999/xhtml" name="显示等级"><arg name="等级"></arg></mutation><value name="ARG0"><block type="math_number" id="2n9PVGs}jbIf0Ri!P_9z"><field name="NUM">3</field></block></value></block></next></block></statement></block></next></block></statement></block></next></block><block type="procedures_defnoreturn" id="I{MdNpvu[mc2Krub~3*D" x="6" y="31"><mutation xmlns="http://www.w3.org/1999/xhtml"><arg name="等级"></arg></mutation><field name="NAME">显示等级</field><statement name="STACK"><block type="controls_if" id="QM$sro+)vgJk,_`JnQ_k"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="2"></mutation><value name="IF0"><block type="logic_compare" id="+(0x?y_zD7A27Y,Zl[a8"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="cN0m~m9)5f?Or?^t-Sx("><field name="VAR">等级</field></block></value><value name="B"><block type="math_number" id="aPjVft6|p}bF-1_u5C$J"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="actuator_neopixel_rgb" id="sCPy.m-J$n~T5R?6x9c:"><value name="SUB"><shadow type="variables_get" id="-OoayPZZj6P=nvt*L?f4"><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="mw.xV{/aqkUBIt@Mi*pQ"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="H]I{]1J=C8{;PMp0h}`G"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="]1:}-CwWO8`75O*@Mm;@"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="#6x(yG9?7yMzt?ps*sx5"><field name="NUM">50</field></shadow></value></block></statement><value name="IF1"><block type="logic_compare" id="h:z-qdl=[2Oc_ojx0Gk*"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="?tW5:YE$=l:^r-2kfkL["><field name="VAR">等级</field></block></value><value name="B"><block type="math_number" id="VPHSw%=7q(I=uD]]h*ww"><field name="NUM">2</field></block></value></block></value><statement name="DO1"><block type="actuator_neopixel_rgb" id="eF_gP.6A(Lw@Q(m-jd%7"><value name="SUB"><shadow type="variables_get" id="W41Wf!FU5_9H^CC@e%SV"><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="9]-zzCm^IID]`.$4~F5q"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="wtAOO?-}!9@2Ll~tb1Dx"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id=":dMgAygvmh;^!{s|u{Zc"><field name="NUM">50</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="q=Yb@R@u5EXu50fJc}w["><field name="NUM">0</field></shadow></value></block></statement><value name="IF2"><block type="logic_compare" id="M8v;[PlMM(:(z2]7r76/"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="$]dBY]?TOk%0G}6Ng+q#"><field name="VAR">等级</field></block></value><value name="B"><block type="math_number" id="0FYPSK2Latd7zKVNh`3V"><field name="NUM">3</field></block></value></block></value><statement name="DO2"><block type="actuator_neopixel_rgb" id="B~@dpia5FN{AK9?UnjSc"><value name="SUB"><shadow type="variables_get" id="meUyzY;hrX3CNmh=*C}G"><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="DuEYPVqj+d(XZqWrbXz}"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="Va-iqcsJqP2#@C`J#6sh"><field name="NUM">50</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="yP0!`$k0@a/lQpdIbJi1"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="+;0-|3iL:xgyK|S=AM%|"><field name="NUM">0</field></shadow></value></block></statement><next><block type="actuator_neopixel_write" id="Zy.`HtfqxMt-y:WWkB4$"><value name="SUB"><shadow type="variables_get" id=";jW4Paar$l3Mp~--*#+g"><field name="VAR">rgb</field></shadow></value><next><block type="controls_delay" id="nyK7o@xDf*r*nPPhMg-u"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="2@hx0|z2`RzmIIZM}DvO"><field name="NUM">1000</field></shadow></value><next><block type="actuator_neopixel_rgb" id=".FogVV6ei|PKJWRz;ON^"><value name="SUB"><shadow type="variables_get" id="y1$mb~R~Dq9Xh[@S3V,`"><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="]-+GC}w-~/`nmliI,$$y"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="/-cE]u?~7q,Bk_br_]2a"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="9HUn.S(up[+atWZ*ll^J"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="8P*3|F-7}2Gs[bw2Fzq)"><field name="NUM">0</field></shadow></value><next><block type="actuator_neopixel_write" id="oI!@(*wbBRXMukV_sIDX"><value name="SUB"><shadow type="variables_get" id="}{iRn!#cEnH7yvv~mOwL"><field name="VAR">rgb</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></xml>