Files
mixly3/boards/default/micropython_esp32/examples/JNIUPdLpnuXM/o93HoDYuXduw.mix
2024-07-23 20:47:22 +08:00

1 line
4.6 KiB
XML

<xml version="Mixly 2.0 Beta11" board="MixGo" xmlns="http://www.w3.org/1999/xhtml"><block type="procedures_defnoreturn" id="e}e@b%)44MD_JOY!/{|W" x="67" y="76"><mutation xmlns="http://www.w3.org/1999/xhtml"><arg name="延时"></arg></mutation><field name="NAME">警报声</field><statement name="STACK"><block type="controls_forEach" id="achkUGX{yesU$c)m99Zq"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="list_many_input"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="R|_CRhqL8A1JKo]RM}AA"><value name="FROM"><shadow type="math_number" id="S}|m@pEJS!hMY.6RhF4y"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="{lx~3z=0Qxm~lzEjWzd4"><field name="NUM">180</field></shadow></value><value name="STEP"><shadow type="math_number" id="Hoe`dc4L.IG}SHtGO-lV"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="IZbD!Er61bP$tNs`2fNm"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="esp32_music_pitch" id="~gP,;7I)JF^U%}424P?I"><value name="PIN"><shadow type="pins_pwm_pin" id="*+I}4jq(e3d?w2D/pT"><field name="PIN">27</field></shadow></value><value name="pitch"><shadow xmlns="http://www.w3.org/1999/xhtml" type="pins_tone_notes" id="fxZ|o33d_muOUGq9QmhK"><field name="PIN">440</field></shadow><block type="math_arithmetic" id="`[^[2-N4?R4p{#GnSH2G" inline="false"><field name="OP">ADD</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="AKBf=}LW3+CH?=|}4|BW"><field name="NUM">3.1412</field></shadow><block type="math_arithmetic" id="N4[VMJ#wv5S`(.]T[qYX" inline="false"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="g,)7zMYJY`lD~ri;ec^j"><field name="NUM">1</field></shadow><block type="math_trig" id="cb_?p,gA6{H=t{PTU@B;"><field name="OP">SIN</field><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="[y}J+:n8lL?1^~CB`Fer"><field name="NUM">90</field></shadow><block type="math_arithmetic" id="HQ(j=PLdEh,w7jxscdz5"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="/N:OBOGs?CE2BC?c0N|x"><field name="NUM">1</field></shadow><block type="variables_get" id="dRZ#E{yCn`ckl$`xC(bq"><field name="VAR">i</field></block></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="j~CBj!UM?:JYZuZ*m){6"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="zLIg#,uc~$OEfl4cxwcM"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number" id=",22?n0aTD[(N}NK)M2bE"><field name="NUM">3.1412</field></shadow></value><value name="B"><shadow type="math_number" id="{yi)/M],c`..t+Y5^y99"><field name="NUM">180</field></shadow></value></block></value></block></value></block></value><value name="B"><shadow type="math_number" id="[4Xa)dL4EFSc|y#*ACi1"><field name="NUM">1000</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="H%Eo@_V)KR!Az:ï{3t"><field name="NUM">2000</field></shadow></value></block></value><next><block type="controls_delay" id="B42S#oanT.YO5E/?.tcf"><field name="Time">ms</field><value name="DELAY_TIME"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="qy)/zlZ7D?6i3rTd%QV}"><field name="NUM">20</field></shadow><block type="variables_get" id="_pHpp~*/Q=3LD7FlzY@u"><field name="VAR">延时</field></block></value></block></next></block></statement></block></statement></block><block type="controls_whileUntil" id="r^OY-eT@sc8SfWN#dNob" x="66" y="332"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="R(j8z!`{eZWLEd2`|U}y"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="ztC}ZN`u*P0c-?d^eR+1"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="9ai415xI5^).$PQf#:;8"><value name="btn"><shadow type="pins_button" id="1/yt4CYSYt|UJOl|Mc(Y"><field name="PIN">button_a</field></shadow></value></block></value><statement name="DO0"><block type="procedures_callnoreturn" id="}W_l2ldANS^S[6y=0#ZB"><mutation xmlns="http://www.w3.org/1999/xhtml" name="警报声"><arg name="延时"></arg></mutation><value name="ARG0"><block type="math_number" id="`Iig7U[6qNX[7j6DmHl^"><field name="NUM">20</field></block></value><next><block type="esp32_music_stop" id="v^sdQZeMh)j*j3nSv4Q."><value name="PIN"><shadow type="pins_pwm_pin" id="6?.hS.mDgd%r{W5o}Q1i"><field name="PIN">27</field></shadow></value></block></next></block></statement></block></statement></block></xml>