1 line
9.4 KiB
XML
1 line
9.4 KiB
XML
<xml version="Mixly 2.0 Beta11" board="MixGo" xmlns="http://www.w3.org/1999/xhtml"><block type="variables_set" id="xwo}OZl^Xf$k[U1[5zs1" x="217" y="-11"><field name="VAR">x</field><value name="VALUE"><block type="math_number" id="TS}96f/YCaO*U,W+m[Tp"><field name="NUM">7</field></block></value><next><block type="variables_set" id="9CX5Q,e@IHa*Z|;xCwUV"><field name="VAR">y</field><value name="VALUE"><block type="math_number" id="-KlxAu2xj.WQF]Kyi!/r"><field name="NUM">3</field></block></value><next><block type="controls_whileUntil" id="77(87(a$?vSpIVv!@J3m"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="r9xvaAIdpe*Z(9@N,w#w"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="display_bright_point" id="Iep;NwMaCCGTFb8-l_H;"><value name="x"><shadow xmlns="http://www.w3.org/1999/xhtml" type="pins_exlcdh" id="ESW=7?cN/UocUjk`(.b@"><field name="PIN">0</field></shadow><block type="variables_get" id="{~:509w;AM,Z|.VqT8Yk"><field name="VAR">x</field></block></value><value name="y"><shadow xmlns="http://www.w3.org/1999/xhtml" type="pins_exlcdv" id="Slo2g0uqmCV6F)zGSTLf"><field name="PIN">7</field></shadow><block type="variables_get" id="=WgR,|%T-h}x0eoRA7WT"><field name="VAR">y</field></block></value><value name="STAT"><shadow type="display_onoff" id="_EMsy+?I)G2O{8E!Tm5`"><field name="ONOFF">ON</field></shadow></value><next><block type="controls_delay" id="Oy}k/E3:`59K;!X)9-Cv"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="m+7bv%QBZFF:7?TG7B`_"><field name="NUM">100</field></shadow></value><next><block type="display_bright_point" id="},xl?[VQ:lvr:ÛYZ1r"><value name="x"><shadow xmlns="http://www.w3.org/1999/xhtml" type="pins_exlcdh" id="ESW=7?cN/UocUjk`(.b@"><field name="PIN">0</field></shadow><block type="variables_get" id="d%`BmED2em(MZ}X3V)-i"><field name="VAR">x</field></block></value><value name="y"><shadow xmlns="http://www.w3.org/1999/xhtml" type="pins_exlcdv" id="5[--tnC|^,aZ(..[eU@i"><field name="PIN">7</field></shadow><block type="variables_get" id="2UkTlU/%IGEY3%u_ZoD="><field name="VAR">y</field></block></value><value name="STAT"><shadow type="display_onoff" id=",{7hK(P..Y/HRo{xpXMp"><field name="ONOFF">OFF</field></shadow></value><next><block type="controls_if" id="E(Xl^=K$+oi!?#fxf7+p"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1"></mutation><value name="IF0"><block type="logic_compare" id="DzzPovVvACXA6j2BM}B,"><field name="OP">GT</field><value name="A"><block type="math_to_int" id="wjX79t{,eap!u.7Tpg$#"><field name="OP">round</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="L$?oGy6W@yTjXt09|ndv"><field name="NUM">0.998</field></shadow><block type="sensor_mpu9250_get_acceleration" id="SB]KTp=qNk-1;r3AYp_r"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="[q$|HdF%j4N_rL,3fFAr"><field name="VAR">mpu</field></shadow></value></block></value></block></value><value name="B"><block type="math_number" id="N*-#;3kHbzr5FXqXTdVY"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="controls_if" id=",OpZEvVv(BBi[q]pK[l4"><value name="IF0"><block type="logic_compare" id="8MA1+I_j%}=O|PN#$3^x"><field name="OP">LT</field><value name="A"><block type="variables_get" id="gitAMS1px#HJ/d%du?@("><field name="VAR">x</field></block></value><value name="B"><block type="math_number" id="I~%P:Pll}.l:sf9wg07A"><field name="NUM">15</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="~cux745-FJWsAM@)+jJ7"><field name="VAR">x</field><value name="VALUE"><block type="math_arithmetic" id=",9taIRON*)z=.gGy@b[I"><field name="OP">ADD</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`~0V;m8VuUw@TQDrhhm`"><field name="NUM">1</field></shadow><block type="variables_get" id="z|V=$}Hyf0mmUF}N0622"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="uX[bl1$7^p=UvVnvA?AH"><field name="NUM">1</field></shadow></value></block></value></block></statement></block></statement><value name="IF1"><block type="logic_compare" id="MNU#|+M$JKUyO^l-4R^j"><field name="OP">LT</field><value name="A"><block type="math_to_int" id="4}0%O#.SSuyz6-1%{M:6"><field name="OP">round</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`tl#%5Z7d=Z`(o/#+vU%"><field name="NUM">0.998</field></shadow><block type="sensor_mpu9250_get_acceleration" id="[?5VS=HD^U]LnD@%=D_`"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="vk#-F+YDb]*/uPh8$N,-"><field name="VAR">mpu</field></shadow></value></block></value></block></value><value name="B"><block type="math_number" id="B-a^UdK{ybTb(6`3#o?n"><field name="NUM">0</field></block></value></block></value><statement name="DO1"><block type="controls_if" id="s-@[~Tn(m(VqQK.GOZna"><value name="IF0"><block type="logic_compare" id="NJ~PS@0U#/xEwh_jV1WV"><field name="OP">GT</field><value name="A"><block type="variables_get" id="?icjVtBdI5D._*w$r0#6"><field name="VAR">x</field></block></value><value name="B"><block type="math_number" id=")3@tDh`cr~_VD%*ktz]N"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="`}*3/qmR%lKP$[*Jdm%x"><field name="VAR">x</field><value name="VALUE"><block type="math_arithmetic" id="Ii/ygf.^M=4xD$p$4iv."><field name="OP">MINUS</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`~0V;m8VuUw@TQDrhhm`"><field name="NUM">1</field></shadow><block type="variables_get" id="|_?OcfY*W|]2~5?*g+fn"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="#NwN7fuQPIkcs*nndnv5"><field name="NUM">1</field></shadow></value></block></value></block></statement></block></statement><next><block type="controls_if" id="DULlIS8Wj_YXP##C;^PW"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1"></mutation><value name="IF0"><block type="logic_compare" id="%x)}]v`0-IOfW?%TYN3O"><field name="OP">GT</field><value name="A"><block type="math_to_int" id="^TFdueNN*8,Zw3Brdi`H"><field name="OP">round</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="L$?oGy6W@yTjXt09|ndv"><field name="NUM">0.998</field></shadow><block type="sensor_mpu9250_get_acceleration" id="kiDihN-%H^QvXruI4E5s"><field name="key">y</field><value name="SUB"><shadow type="variables_get" id="p+,[756^gi@3*v?M_|i8"><field name="VAR">mpu</field></shadow></value></block></value></block></value><value name="B"><block type="math_number" id="f$5?D]_hR`xvhSgv$?B="><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="G)p1yi56s7OuFi43{2i]"><value name="IF0"><block type="logic_compare" id=".@%rvRN5Vq(bln+4CyWt"><field name="OP">LT</field><value name="A"><block type="variables_get" id="|;yzR^xma7q{0WJORjP_"><field name="VAR">y</field></block></value><value name="B"><block type="math_number" id="jD26JGkQnrZC^vo.^[Zm"><field name="NUM">7</field></block></value></block></value><statement name="DO0"><block type="variables_set" id=")o1bCP%4qt-;6+JtWNp3"><field name="VAR">y</field><value name="VALUE"><block type="math_arithmetic" id="9=?}Wtmq^k5D9R0uP#SI"><field name="OP">ADD</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`~0V;m8VuUw@TQDrhhm`"><field name="NUM">1</field></shadow><block type="variables_get" id="43[,B9o)?lA$:c?}DA+V"><field name="VAR">y</field></block></value><value name="B"><shadow type="math_number" id="x,a@]b$*fQk9wmICM#~9"><field name="NUM">1</field></shadow></value></block></value></block></statement></block></statement><value name="IF1"><block type="logic_compare" id="Xi~rspZDE~HqqW!f6Yxa"><field name="OP">LT</field><value name="A"><block type="math_to_int" id=".Ru1Slp+@h.J5xoHz.#4"><field name="OP">round</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`tl#%5Z7d=Z`(o/#+vU%"><field name="NUM">0.998</field></shadow><block type="sensor_mpu9250_get_acceleration" id="@aqi-@j$7RE8f@dFM;EF"><field name="key">y</field><value name="SUB"><shadow type="variables_get" id="|pG%$,n=:5*y?rp(7vzq"><field name="VAR">mpu</field></shadow></value></block></value></block></value><value name="B"><block type="math_number" id="?2_C?]V-MCz0vXI4hWI7"><field name="NUM">0</field></block></value></block></value><statement name="DO1"><block type="controls_if" id="Ry4M}%s6bI.guaGaJ33m"><value name="IF0"><block type="logic_compare" id="hZJ=AX83=+o0ciL{%!yZ"><field name="OP">GT</field><value name="A"><block type="variables_get" id=":1d,gh}k!L`FhwhfbVvf"><field name="VAR">y</field></block></value><value name="B"><block type="math_number" id="S!?qPi1i)Pf(3@2S+bFi"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="s#3CQS$xD}+p=c)W6l2d"><field name="VAR">y</field><value name="VALUE"><block type="math_arithmetic" id="Cy(Ku|o}IFy(vy|x.Ulx"><field name="OP">MINUS</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`~0V;m8VuUw@TQDrhhm`"><field name="NUM">1</field></shadow><block type="variables_get" id="=Iyh(l*g|AeFJQV4a#z^"><field name="VAR">y</field></block></value><value name="B"><shadow type="math_number" id="[`d~s=88JDYEfu9ef9*g"><field name="NUM">1</field></shadow></value></block></value></block></statement></block></statement></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></xml> |