1 line
6.9 KiB
XML
1 line
6.9 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控青春(NOVA)" shown="block"><block type="variables_set" id="X/nP[b+#e5?1_bmC[[.~" x="-1404" y="-916"><field name="VAR">x</field><value name="VALUE"><block type="math_number" id="4LGA`DCAzl30)KxkdkZ`"><field name="NUM">80</field></block></value><next><block type="variables_set" id="SCE(cmoq=E1g!L_AMl5P"><field name="VAR">y</field><value name="VALUE"><block type="math_number" id="OwPI/Y1zE5NH/u_@9PyG"><field name="NUM">64</field></block></value><next><block type="controls_whileUntil" id="ToD6.hNo6+|R}!(ZFs9e"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="Xd4=AEH!KMi=BkZT-gE0"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="#SanE5a?YDNoG:l6=LN#"><value name="IF0"><block type="logic_compare" id="[9wZ*=7*w_G7dG*EiR/3"><field name="OP">LT</field><value name="A"><block type="sensor_get_acceleration" id="X-/P[/h-zIq,-`_Rb{0!"><field name="key">[0]</field></block></value><value name="B"><block type="math_number" id="F}XeV(j5]qZ-QV)MOcyZ"><field name="NUM">-0.1</field></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id=".~f=^JHh1_cUhlo89Ph|"><field name="OP">MINUS</field><value name="A"><shadow type="variables_get" id="1HX0P}E}sQ.iLmOHKs8z"><field name="VAR">x</field></shadow></value><value name="B"><shadow type="math_number" id="ht0vc4$d3VPRvL!-FOET"><field name="NUM">5</field></shadow></value></block></statement><next><block type="controls_if" id="L_d~XlC-!{Td7NEuYct~"><value name="IF0"><block type="logic_compare" id="D#?98B/sebD*s6Sil##R"><field name="OP">GT</field><value name="A"><block type="sensor_get_acceleration" id="^Gri=]I;mXQCEc~woCj`"><field name="key">[0]</field></block></value><value name="B"><block type="math_number" id="u6Nig71b(4q*(|Rox4EG"><field name="NUM">0.1</field></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="jB`kXBN*F3d2d{}RAzPg"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="M2:q5=e?x^R}Nk+y}sfT"><field name="VAR">x</field></shadow></value><value name="B"><shadow type="math_number" id="p7xIOsaA^z4V7(?=?`I4"><field name="NUM">5</field></shadow></value></block></statement><next><block type="controls_if" id="mi/Z+JRv~GB$iLEdN:kh"><value name="IF0"><block type="logic_compare" id="M}LxQJ:Xro[CRahN}`f1"><field name="OP">LT</field><value name="A"><block type="sensor_get_acceleration" id="cj@d,n[HBta[A]NEHsPZ"><field name="key">[1]</field></block></value><value name="B"><block type="math_number" id="|7OrH+{3Fq2_!`un*t5f"><field name="NUM">-0.1</field></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="K_3wSN{q}DA_1/,lB|nP"><field name="OP">MINUS</field><value name="A"><shadow type="variables_get" id="_xUS/#U2F=t6!LU8WsF!"><field name="VAR">y</field></shadow></value><value name="B"><shadow type="math_number" id="vQyqdN2FMuXgKDA46JXa"><field name="NUM">5</field></shadow></value></block></statement><next><block type="controls_if" id="ZM|zA5k4rxV6zhz*w`CC"><value name="IF0"><block type="logic_compare" id="yWN]Ua$.rg`yMQwU{`Rv"><field name="OP">GT</field><value name="A"><block type="sensor_get_acceleration" id="a:JE!e}}BLok#gH+D7|("><field name="key">[1]</field></block></value><value name="B"><block type="math_number" id="J01T[kYzq3-7R[ex+ZJO"><field name="NUM">0.1</field></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="Ix1S7Z/vEebp=EOXZYPK"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="#~]fQWKIzd/wS/KJjIVO"><field name="VAR">y</field></shadow></value><value name="B"><shadow type="math_number" id="kZ]P8V}K#fgV-j|:];M1"><field name="NUM">5</field></shadow></value></block></statement><next><block type="variables_set" id="sh7~YLj[7yST6pk6o[ep"><field name="VAR">x</field><value name="VALUE"><block type="math_constrain" id="o+o#YK13v^#:Ek}PC*zK"><value name="VALUE"><shadow type="math_number" id="aEY;6nu@X=z(^5q,t`;+"><field name="NUM">1000</field></shadow><block type="variables_get" id="=P;ebD}A6#,E`YYt,s*w"><field name="VAR">x</field></block></value><value name="LOW"><shadow type="math_number" id="#$HD~LS`5|OC0RmVj;d+"><field name="NUM">0</field></shadow></value><value name="HIGH"><shadow type="math_number" id="O69,Mpi_NR67q)/z[__*"><field name="NUM">150</field></shadow></value></block></value><next><block type="variables_set" id="zpZ3(C`NHDNpnD.G[Cma"><field name="VAR">y</field><value name="VALUE"><block type="math_constrain" id="xn^6EUrPkJDk/25dGUlO"><value name="VALUE"><shadow type="math_number" id="~(:$lzxXhI-CbfH}*+lO"><field name="NUM">1000</field></shadow><block type="variables_get" id="8UJtZms0/Hm(~.pW7@jI"><field name="VAR">y</field></block></value><value name="LOW"><shadow type="math_number" id="}h@r[`.d0`t+0tzhbSO~"><field name="NUM">0</field></shadow></value><value name="HIGH"><shadow type="math_number" id="gh(/(72t[Oog|BM#f=-s"><field name="NUM">125</field></shadow></value></block></value><next><block type="display_clear" id="[qU3-2jzi_bsX[e+l#.~"><value name="boolean"><shadow type="logic_boolean" id="r}M#+|lKp1d#)~VZS1R{"><field name="BOOL">TRUE</field></shadow></value><next><block type="onboard_tft_display_shape_circle" id="*G*6u0=w.[8W,$#H[UN4"><field name="shape">True</field><value name="x"><shadow type="math_number" id="7JU@u/7odoUCy.0-b_@o"><field name="NUM">60</field></shadow><block type="variables_get" id="fWb)KIMr-qP^{UQR3x}R"><field name="VAR">x</field></block></value><value name="y"><shadow type="math_number" id="p0Zh-ki?5d-e5j+ZK{Y:"><field name="NUM">60</field></shadow><block type="variables_get" id="AL^V[.^aPzSy1xDxJjHR"><field name="VAR">y</field></block></value><value name="r"><shadow type="math_number" id="Ea)3JJ.lsK*~4Iduo4jG"><field name="NUM">5</field></shadow></value><value name="VAR"><shadow type="tuple_create_with_text_return" id="kB4~c_~vQ=kjLCy5iP2o"><field name="TEXT">255,255,0</field></shadow><block type="display_color_seclet" id="rcx`(}cWp`:ttq:6hktG"><field name="COLOR">#ffffff</field></block></value><value name="boolean"><shadow type="logic_boolean" id="5!G33bUl/Wh_q+xX[2.a"><field name="BOOL">TRUE</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></xml><config>{}</config><code>ZnJvbSBtaXhnb19ub3ZhIGltcG9ydCBvbmJvYXJkX2FjYwpmcm9tIG1peGdvX25vdmEgaW1wb3J0IG9uYm9hcmRfdGZ0Cgp4ID0gODAKeSA9IDY0CndoaWxlIFRydWU6CiAgICBpZiBvbmJvYXJkX2FjYy5hY2NlbGVyYXRpb24oKVswXSA8IC0wLjE6CiAgICAgICAgeCAtPSA1CiAgICBpZiBvbmJvYXJkX2FjYy5hY2NlbGVyYXRpb24oKVswXSA+IDAuMToKICAgICAgICB4ICs9IDUKICAgIGlmIG9uYm9hcmRfYWNjLmFjY2VsZXJhdGlvbigpWzFdIDwgLTAuMToKICAgICAgICB5IC09IDUKICAgIGlmIG9uYm9hcmRfYWNjLmFjY2VsZXJhdGlvbigpWzFdID4gMC4xOgogICAgICAgIHkgKz0gNQogICAgeCA9IG1pbihtYXgoeCwgMCksIDE1MCkKICAgIHkgPSBtaW4obWF4KHksIDApLCAxMjUpCiAgICBvbmJvYXJkX3RmdC5maWxsKDAsc3luYz1UcnVlKQogICAgb25ib2FyZF90ZnQuZWxsaXBzZSh4LCB5LCA1LCA1LCAweGZmZmYsIFRydWUsc3luYz1UcnVlKQo=</code> |