Files
mixly3/boards/default/arduino_avr/examples/oKteXz3xeIWa/iL9vTAmPQNDs/Ko3F4ypU9PF4.mix
2024-07-23 20:47:22 +08:00

1 line
12 KiB
XML

<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino Nano w/ ATmega328P (old bootloader)" xmlns="http://www.w3.org/1999/xhtml"><block type="procedures_defnoreturn" id="gApXz?-PD~TN|s-[9ENv" x="0" y="0"><mutation xmlns="http://www.w3.org/1999/xhtml"><arg name="speed" vartype="int"></arg></mutation><field name="NAME">goAhead</field><statement name="STACK"><block type="inout_analog_write" id="QerXWX$DCJ:GS83N:bs@"><value name="PIN"><shadow type="pins_pwm" id="0tJUTiccC_3+0@kmI@Qh"><field name="PIN">10</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="*wcUE9N#Vf-:zR{].ezu"><field name="NUM">0</field></shadow><block type="variables_get" id="z=AkxR3/GoK|3ss?^*x0"><field name="VAR">speed</field></block></value><next><block type="inout_analog_write" id="}^{Vyg[+ocf1NbUpvJk4"><value name="PIN"><shadow type="pins_pwm" id="bYiN(s*Y:F-U?Vbqi%g1"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow type="math_number" id="@HD,kiw5CXN6kT8O(j/a"><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="6[1=]:IQ*wIim]_)4Fb="><value name="PIN"><shadow type="pins_pwm" id="paw4n#2ADx0NYY:m^l,t"><field name="PIN">5</field></shadow></value><value name="NUM"><shadow type="math_number" id="#4*IICCL%lZ={bWs]mC6"><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="F]_f-fz,#Fb+tip5yH`7"><value name="PIN"><shadow type="pins_pwm" id="![YqQoxC.YMD:P(G.8[v"><field name="PIN">6</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="fR#Qv[@skktjGwd2hz+l"><field name="NUM">0</field></shadow><block type="variables_get" id="rB.Vc?bJ2;d6#1T`e(wt"><field name="VAR">speed</field></block></value></block></next></block></next></block></next></block></statement></block><block type="base_setup" id="mEJgCavu+O[l$=lB?aNh" x="0" y="214"><statement name="DO"><block type="variables_declare" id="UclI%`WP|sP+@+#tTzvJ"><field name="variables_type">global_variate</field><field name="VAR">state</field><field name="TYPE">boolean</field><value name="VALUE"><block type="logic_boolean" id="fVmGFeQqE^d%O*(?PUUc"><field name="BOOL">FALSE</field></block></value></block></statement></block><block type="ir_recv" id="ZQhi6!lco~uLd|`#[1,p" x="0" y="306"><field name="VAR">ir_item</field><value name="PIN"><shadow type="pins_digital" id="gpJ;[`mG:]Gt5u+#yU-L"><field name="PIN">2</field></shadow></value><statement name="DO"><block type="serial_print_num" id="O:cEBL,.)x`yD23VyV?I"><field name="serial_select">Serial</field><field name="new_line">print</field><field name="STAT">HEX</field><value name="CONTENT"><block type="variables_get" id="W1(5oPz?3[4S())8;^o6"><field name="VAR">ir_item</field></block></value><next><block type="controls_if" id="lFpdlexWdgv6:fC.o~o}"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1"></mutation><value name="IF0"><block type="logic_compare" id="RuE_W,k~Q28k3{xQ$Gvh"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="z7Hqdo42e%v~S^iiw$8i"><field name="VAR">ir_item</field></block></value><value name="B"><block type="math_number" id="CCNJV}D*4pJ+]Mz7,N"><field name="NUM">0XFFA857</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="QvWh4*FTKJZ3#m0C}(2:"><field name="VAR">state</field><value name="VALUE"><block type="logic_boolean" id="=oH0n]5Nb(n!Umtz4B=M"><field name="BOOL">TRUE</field></block></value></block></statement><value name="IF1"><block type="logic_compare" id="JYYP)dMV20x$ERP.w#z8"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="X/any~2ro}98(.muFXiY"><field name="VAR">ir_item</field></block></value><value name="B"><block type="math_number" id="dJ8`M*b@2q91gj0]@HAV"><field name="NUM">0XFFA25D</field></block></value></block></value><statement name="DO1"><block type="variables_set" id="wW}@zS`Obpu[iXy8xpt."><field name="VAR">state</field><value name="VALUE"><block type="logic_boolean" id="+jQR?vWvf=]rC1;k,c$T"><field name="BOOL">FALSE</field></block></value></block></statement></block></next></block></statement><next><block type="controls_if" id="TJsOvq^/F3lprxaxxdKo"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="variables_get" id="!%Xe@e(ZW2|](MaPB9"><field name="VAR">state</field></block></value><statement name="DO0"><block type="controls_if" id="-x(W8E.PXR?~@Q+XwYcs"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1" else="1"></mutation><value name="IF0"><block type="logic_operation" id="TWZMpxjv]BEyEWDMksX,"><field name="OP">AND</field><value name="A"><block type="logic_negate" id="#G,wSKFYY@#w7?jK.iIJ"><value name="BOOL"><block type="inout_digital_read2" id="1tRq$?tx#JRx7y4DfFVV"><value name="PIN"><shadow type="pins_digital" id="H!EfZ:dIxt1mddubk.~u"><field name="PIN">4</field></shadow></value></block></value></block></value><value name="B"><block type="inout_digital_read2" id="v?$/579sm72~xM)3jV8j"><value name="PIN"><shadow type="pins_digital" id="oK3[KJa6aDl,d/L-]y^0"><field name="PIN">7</field></shadow></value></block></value></block></value><statement name="DO0"><block type="procedures_callnoreturn" id="rgREdV*%Y1k|u%0;JkZ4"><mutation xmlns="http://www.w3.org/1999/xhtml" name="turnRight"><arg name="speed"></arg></mutation><value name="ARG0"><block type="math_number" id="ajuXM#~s/E5!7!cAv^_B"><field name="NUM">255</field></block></value></block></statement><value name="IF1"><block type="logic_operation" id="5HERB${Tkf69}mO4xz+6"><field name="OP">AND</field><value name="A"><block type="inout_digital_read2" id="=Gcz1g|em^n.82]gR^VI"><value name="PIN"><shadow type="pins_digital" id="B^[Vk`yK407ujEU%Jbtr"><field name="PIN">4</field></shadow></value></block></value><value name="B"><block type="logic_negate" id="V!6|TO=1PsatpLC?39`Q"><value name="BOOL"><block type="inout_digital_read2" id="e*(V};j;B+/i9T332T$g"><value name="PIN"><shadow type="pins_digital" id="+AR,3nq[oXRKb,Z2:Mt4"><field name="PIN">7</field></shadow></value></block></value></block></value></block></value><statement name="DO1"><block type="procedures_callnoreturn" id="j}8=lT_v;ayWC!c[LRsy"><mutation xmlns="http://www.w3.org/1999/xhtml" name="turnLeft"><arg name="speed"></arg></mutation><value name="ARG0"><block type="math_number" id="NU?KG|eci(/x41O9n,BN"><field name="NUM">255</field></block></value></block></statement><statement name="ELSE"><block type="procedures_callnoreturn" id="-Kn1S_-h]$.t25=0@!h3"><mutation xmlns="http://www.w3.org/1999/xhtml" name="goAhead"><arg name="speed"></arg></mutation><value name="ARG0"><block type="math_number" id=")uNwbuyuHq2)PR:-0uga"><field name="NUM">255</field></block></value></block></statement></block></statement><statement name="ELSE"><block type="procedures_callnoreturn" id="A!tArwfsco(V;X6SDp5l"><mutation xmlns="http://www.w3.org/1999/xhtml" name="stop"></mutation></block></statement></block></next></block><block type="procedures_defnoreturn" id="AhUdy]{{FZij.+bJs]-T" x="0" y="957"><field name="NAME">stop</field><statement name="STACK"><block type="inout_analog_write" id="RKX_s~f+;$?4*sAXXZq,"><value name="PIN"><shadow type="pins_pwm" id="yTP0nKfwZEtd2%s2kahA"><field name="PIN">10</field></shadow></value><value name="NUM"><shadow type="math_number" id="/js%Y`?8;T4$,HmX5~U2"><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="ekV+aR6P94?exhrQH~gb"><value name="PIN"><shadow type="pins_pwm" id="y1)zc5Le]|.yqW,y_Z]K"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow type="math_number" id="VPi--7FEqTg4|?E-cW~D"><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="RW,a2`d+~_NCxjVb!n.r"><value name="PIN"><shadow type="pins_pwm" id=",({=AFP8B)nych40S1__"><field name="PIN">5</field></shadow></value><value name="NUM"><shadow type="math_number" id="B!w`/E:a4nB:0bI},3l{"><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="89A(15jYf[v~UHg2),|2"><value name="PIN"><shadow type="pins_pwm" id="?=D;OSH+9OVRCMApzLZ:"><field name="PIN">6</field></shadow></value><value name="NUM"><shadow type="math_number" id="V(TQcaR3T/#:W0r}e=-7"><field name="NUM">0</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="+22g4:R,o8i)nw/G_!xW" x="0" y="1171"><mutation xmlns="http://www.w3.org/1999/xhtml"><arg name="speed" vartype="int"></arg></mutation><field name="NAME">turnLeft</field><statement name="STACK"><block type="inout_analog_write" id="HMh;B:n+cIJ(rEnsQ~.!"><value name="PIN"><shadow type="pins_pwm" id="[iq2=Hdh:yZ|WJ4W{!QA"><field name="PIN">10</field></shadow></value><value name="NUM"><shadow type="math_number" id="rT,OmAP*yB^yt0w}zr9b"><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="qkjH3aA]8Vez-vKv((1G"><value name="PIN"><shadow type="pins_pwm" id="p[lATi:T.NX#@3.0](0n"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="$y`.7~Zse@cn%]Rmc1lD"><field name="NUM">0</field></shadow><block type="variables_get" id="!k|rnBLi0ZHVi^dx94yd"><field name="VAR">speed</field></block></value><next><block type="inout_analog_write" id="|aAYbvqJ:?fYOJt1]lSY"><value name="PIN"><shadow type="pins_pwm" id="D0KT1~+0lL42f}+h.~OC"><field name="PIN">5</field></shadow></value><value name="NUM"><shadow type="math_number" id="Gi)FX(_Qz9swuE`ir?N("><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="hj,:9g|k$NG5wpN4N4%("><value name="PIN"><shadow type="pins_pwm" id="D^}RgI9?0]4HcZCM!R@w"><field name="PIN">6</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9=R!^HY!Pw7W2]Rlql$y"><field name="NUM">0</field></shadow><block type="variables_get" id="4o1/m]/uz{k7pdUt#lTR"><field name="VAR">speed</field></block></value></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id=".%p01.7*]]_uI/RNpsI=" x="0" y="1385"><mutation xmlns="http://www.w3.org/1999/xhtml"><arg name="speed" vartype="int"></arg></mutation><field name="NAME">turnRight</field><statement name="STACK"><block type="inout_analog_write" id="=;!#[LN0J%1k`Y,H}1FE"><value name="PIN"><shadow type="pins_pwm" id=".k92@ALA_x1G[NKfm-q*"><field name="PIN">10</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="H+qAB$G8TWf9@fK5;r;/"><field name="NUM">0</field></shadow><block type="variables_get" id="1.~QXIScKhnjQDs*?~T("><field name="VAR">speed</field></block></value><next><block type="inout_analog_write" id="[[3GJg4y`Rb1CTJIZq}3"><value name="PIN"><shadow type="pins_pwm" id="{zAX:1KkP+ppoT@fO9jR"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow type="math_number" id="JOWu)gYXU-[ZVCv`PGa3"><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="{YW6vugQ3z$?6rQ^~X.]"><value name="PIN"><shadow type="pins_pwm" id="qrT%LJqMzv]tJtM=RC2h"><field name="PIN">5</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="F|GZ`25w?=cVKioZ!I:T"><field name="NUM">0</field></shadow><block type="variables_get" id="Z:4amtT0aT{!5@}g6|$-"><field name="VAR">speed</field></block></value><next><block type="inout_analog_write" id="aq7y~NkI(@LD`Lf:XWnW"><value name="PIN"><shadow type="pins_pwm" id="1|JI)q_|25+P:#2G%}A8"><field name="PIN">6</field></shadow></value><value name="NUM"><shadow type="math_number" id="*[+.y{[=60}Rzj1oTR||"><field name="NUM">0</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml>