Files
mixly3/boards/default/arduino_avr/examples/hxkgUtFfM9ze/_4K2GuxxmboD/HfZX6XYUmmKS.mix
2024-07-21 09:30:11 +08:00

1 line
5.8 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="base_setup" id="et[ydZy$=7DJ|Sn3K|jK" x="0" y="0"><statement name="DO"><block type="variables_declare" id="sx2lla@¼`[rYT9h*{G"><field name="variables_type">global_variate</field><field name="VAR">distance</field><field name="TYPE">float</field><value name="VALUE"><block type="math_number" id="KlN4NZ/~C,NgapIF7fO2"><field name="NUM">0</field></block></value><next><block type="variables_declare" id="m{fPTf+;B)DBUNFUqta+"><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="ulk#97)c9MWwK{wgZYkp"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block><block type="controls_if" id="EXKtCAGm97GW+!sQeXG-" x="0" y="118"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="variables_get" id="E9?$su+:Grww16Lp.M(K"><field name="VAR">state</field></block></value><statement name="DO0"><block type="controls_if" id="Qc@w%[(Ioqy0-ap[*ysp"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1" else="1"></mutation><value name="IF0"><block type="logic_compare" id="jXK.~=hZEAuhWi~PviMD"><field name="OP">LT</field><value name="A"><block type="variables_get" id="9.I}xp~gFkuL#eqpR?Vd"><field name="VAR">distance</field></block></value><value name="B"><block type="math_number" id="0e]x4owOqR2$pXFM2n)w"><field name="NUM">20</field></block></value></block></value><statement name="DO0"><block type="inout_analog_write" id="~ooclE`8+]{/`cmgSQ/c"><value name="PIN"><shadow type="pins_pwm" id="wo=eRaH?NpVW=VB|siCA"><field name="PIN">10</field></shadow></value><value name="NUM"><shadow type="math_number" id="H%Qf5p1T/aHBo-1_1D]R"><field name="NUM">150</field></shadow></value><next><block type="inout_analog_write" id="FOp5Ej5G={qub+Q[r+sI"><value name="PIN"><shadow type="pins_pwm" id="]Y#Q~Y?i^E%?U59}=Kdw"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow type="math_number" id="z?}Z9[;W}7c#w(ZQCgf`"><field name="NUM">0</field></shadow></value></block></next></block></statement><value name="IF1"><block type="logic_compare" id=")4)4aNwn80/r1d:dDm6C"><field name="OP">LT</field><value name="A"><block type="variables_get" id="0E+]RQm+*EemZ^u,;oB*"><field name="VAR">distance</field></block></value><value name="B"><block type="math_number" id="bp6KA:?:uj(`wL9*Wl}="><field name="NUM">40</field></block></value></block></value><statement name="DO1"><block type="inout_analog_write" id="vz$9c*]sQVd[UlR}c3!m"><value name="PIN"><shadow type="pins_pwm" id="_*j009L{sZvM`3vUE{^Z"><field name="PIN">10</field></shadow></value><value name="NUM"><shadow type="math_number" id="hkodLZb*xi^]oUW,-2Zz"><field name="NUM">255</field></shadow></value><next><block type="inout_analog_write" id="a*{Xff#U=)*fK{JYy)GF"><value name="PIN"><shadow type="pins_pwm" id="C63@W~7(X#(C.*IW#Y.8"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow type="math_number" id="RrOS$GJGQ!Uhw$j3!bD#"><field name="NUM">0</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="inout_analog_write" id="b[dSq.o,M%zFa|zqHEU:"><value name="PIN"><shadow type="pins_pwm" id="Rsubn_Orr6NonfZNi[3Q"><field name="PIN">10</field></shadow></value><value name="NUM"><shadow type="math_number" id="_@A]xgF{xQ)?VY4u{pwM"><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="bwJ8nD*|ErNcn#9@.Rxg"><value name="PIN"><shadow type="pins_pwm" id="Lhy@*K)C;4YaqeyU5,8z"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow type="math_number" id="Dw),;DY[^%gn55b3r{rM"><field name="NUM">0</field></shadow></value></block></next></block></statement></block></statement><statement name="ELSE"><block type="inout_analog_write" id="2W2lWbGbH,%:C%P5rOAj"><value name="PIN"><shadow type="pins_pwm" id="onj%Z![mKISQeIIx+Lv-"><field name="PIN">10</field></shadow></value><value name="NUM"><shadow type="math_number" id="wz=j`u!|yZq|h!aK:5ak"><field name="NUM">0</field></shadow></value><next><block type="inout_analog_write" id="cj*DHESDxL$~WrotVMID"><value name="PIN"><shadow type="pins_pwm" id="H0a?XH3QF(:PleDG5bcm"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow type="math_number" id="pgtiX:2LOxWxbXRL_~Dp"><field name="NUM">0</field></shadow></value></block></next></block></statement><next><block type="variables_set" id="=-(`=%[OT}(:Bq!@@4e2"><field name="VAR">distance</field><value name="VALUE"><block type="chaoshengbo2" id="lmGe,lesru8)(o@TV/g0"><field name="Trig">2</field><field name="Echo">4</field></block></value><next><block type="controls_if" id=":APVaZ::q,}T|B-8|*qD"><value name="IF0"><block type="inout_digital_read2" id="l=GVM9IcJA-WlxsmgTxe"><value name="PIN"><shadow type="pins_digital" id="Smr{/Q)UYNeG;LQpi6^-"><field name="PIN">2</field></shadow></value></block></value><statement name="DO0"><block type="controls_whileUntil" id="@bbB}?B!2lAdx-PMuDVq"><field name="MODE">WHILE</field><value name="BOOL"><block type="inout_digital_read2" id="#~X#O^F^sh#pbZXwI6{g"><value name="PIN"><shadow type="pins_digital" id="F3,-p^^D#b79=l?Tb_3J"><field name="PIN">2</field></shadow></value></block></value><statement name="DO"><block type="base_delay" id="AD:+l{#zv?}o`,(n`O^R"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="nNW.Zi.g9o/TSn?CkQP4"><field name="NUM">10</field></shadow></value></block></statement><next><block type="variables_set" id="lvc|?!zKwn7FEl5f?idh"><field name="VAR">state</field><value name="VALUE"><block type="logic_negate" id="FLT$!6QrVq1R);KM=/6p"><value name="BOOL"><block type="variables_get" id="9VxGhcisB4^,FUU#@qI@"><field name="VAR">state</field></block></value></block></value></block></next></block></statement></block></next></block></next></block></xml>