Files
mixly3/boards/default/micropython_esp32/examples/GDDbQRONNwNc/zfYb-DOHxFVI.mix
2024-07-21 09:30:11 +08:00

1 line
9.5 KiB
XML

<xml version="Mixly 2.0 Beta11" board="MixGo" xmlns="http://www.w3.org/1999/xhtml"><block type="actuator_neopixel_init" id="_|qNMJGavVEF1cLz%bi." x="189" y="76"><value name="SUB"><shadow type="variables_get" id="E0wA(?M({.Y,c7P!(f6x"><field name="VAR">rgb</field></shadow></value><value name="PIN"><shadow type="pins_digital_pin" id="s6SA6b0e?A)PTSeTS]Bu"><field name="PIN">2</field></shadow></value><value name="LEDCOUNT"><shadow type="math_number" id="@ONnDG/e=lt:_VWpvi!{"><field name="NUM">2</field></shadow></value><next><block type="controls_whileUntil" id="@zPr5Ptt[F:Y(ns/%d@8"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="_`M7LXmN?@-ct1*%hE]M"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="system_print" id=":K=%7sv:i^nc{:)v45Ch"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="+,H#N!Ri|9GoT[p3)lMf"><field name="TEXT">Mixly</field></shadow><block type="sensor_mpu9250_get_magnetic" id="s.T+iLb|ru@Ts{AU8R-R"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="U(:H`IO#m?jxhQXh:C#9"><field name="VAR">mpu</field></shadow></value></block></value><next><block type="controls_if" id="$ZQ(#ezw4(MOPPiYjYnq"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="`98FDp-Q_CBSi2WMIBc^"><value name="btn"><shadow type="pins_button" id="1/Qu}qAmW,.abF]vBKaK"><field name="PIN">button_a</field></shadow></value></block></value><statement name="DO0"><block type="controls_if" id="J*]YQxUHVGGr3IkiO%Er"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_operation" id="*g@|kE9nCtH92,PlP1!N" inline="false"><field name="OP">OR</field><value name="A"><block type="logic_compare" id="KZXu`ae|xxxGdZ.(i7}y"><field name="OP">GT</field><value name="A"><block type="sensor_mpu9250_get_magnetic" id="@B06|Qj;S]zU??[0.|h{"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="O(9Gzc;+f77)(n_9%VLO"><field name="VAR">mpu</field></shadow></value></block></value><value name="B"><block type="math_number" id="!HyAzWL!|p4Y!q;BP+{0"><field name="NUM">200</field></block></value></block></value><value name="B"><block type="logic_compare" id="/L5g$sSyDGhFBIFgJj6{"><field name="OP">LT</field><value name="A"><block type="sensor_mpu9250_get_magnetic" id="*2S;/%R/5g^,=st,k|(h"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="xC$02D`bNP1+vTsOSr,y"><field name="VAR">mpu</field></shadow></value></block></value><value name="B"><block type="math_number" id="(-Vj!i1#7w8QP7OxgCjg"><field name="NUM">-200</field></block></value></block></value></block></value><statement name="DO0"><block type="actuator_neopixel_rgb" id="43LdNzV3K*QL~R2/oT(l"><value name="SUB"><shadow type="variables_get" id="+~NN@TV@yVNDcQk40LCF"><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="nHM!S;#,n~WgX[I$Z^BP"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="+Z8pQcc(Rt(z$IOQXdBC"><field name="NUM">50</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="B?^I!%9rhAV(td:ZV||f"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="@FS!xIrt*lGtOE!b_uJM"><field name="NUM">0</field></shadow></value></block></statement><statement name="ELSE"><block type="actuator_neopixel_rgb" id="-(rGAH`7%Xvqt_^|EkA$"><value name="SUB"><shadow type="variables_get" id="@vB+}xmpQFh3@atBJEH#"><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="8[sZG|z_{IPpFR0jM3yA"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="y-8;P^}RY~].uhahT8oB"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="kK2`Rd8[.Zf5oa.JSs2W"><field name="NUM">50</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="#]7xh^8vmqbcYP9l}*Sf"><field name="NUM">0</field></shadow></value></block></statement><next><block type="actuator_neopixel_write" id="fM14qn2FNL.=F@Z#)3_3"><value name="SUB"><shadow type="variables_get" id="2=EB/{aDz$h{G~CK841k"><field name="VAR">rgb</field></shadow></value><next><block type="controls_delay" id="o2k#)p19SpceP1YZjD{="><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="C}X8hQV)aR+BC*8hlDoc"><field name="NUM">2000</field></shadow></value><next><block type="actuator_neopixel_rgb" id="qVA1O!7uOfB$$~_$Je]9"><value name="SUB"><shadow type="variables_get" id=",.sIA=pRilJ?w,Y#9MO="><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="pEY]zi4!]7HK|0*C`}$*"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="8_g]FS.?i_7I8,R:.W+="><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="Al$pîmV1Tn3XqPDNvQ"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="Fk^@4l!YX(Q5q/2)mg2A"><field name="NUM">0</field></shadow></value><next><block type="actuator_neopixel_write" id="K,wpk,ft`DlxO[;Hh,1b"><value name="SUB"><shadow type="variables_get" id=".}`Ssw,YgnjWbbLc5x1K"><field name="VAR">rgb</field></shadow></value></block></next></block></next></block></next></block></next></block></statement><next><block type="controls_if" id="a.4Q8xK!H~?jFPbN5O;M"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="_TjRpZ{8JUiG)Ynmx|O{"><value name="btn"><shadow type="pins_button" id="x/KmNeaWV-,Fm$bNrp1q"><field name="PIN">button_b</field></shadow></value></block></value><statement name="DO0"><block type="controls_if" id="i=;7AQ{P@):/}_aXkz82"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_operation" id="=U{p4fI.yq+~wvj(_Vod" inline="false"><field name="OP">OR</field><value name="A"><block type="logic_compare" id="R@3;#P`@i@,zR7Fp-/rU"><field name="OP">GT</field><value name="A"><block type="sensor_mpu9250_get_magnetic" id="AK~_D7XVombo@vKs.L9c"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="f,^yQn9b+DtAX1C,;jTA"><field name="VAR">mpu</field></shadow></value></block></value><value name="B"><block type="math_number" id="oF5pEf9b;-pz_,khn_Up"><field name="NUM">200</field></block></value></block></value><value name="B"><block type="logic_compare" id="9fO^_6MUn:T//RdPAZYl"><field name="OP">LT</field><value name="A"><block type="sensor_mpu9250_get_magnetic" id="sSo)-W]G,u?{Zr@,5]o`"><field name="key">x</field><value name="SUB"><shadow type="variables_get" id="4ni~AVdoGm-Cj0x:cVS?"><field name="VAR">mpu</field></shadow></value></block></value><value name="B"><block type="math_number" id=".Ams*cnB^DJv#@[Qy6xI"><field name="NUM">-200</field></block></value></block></value></block></value><statement name="DO0"><block type="actuator_neopixel_rgb" id="*Kcd78?u53CS342*[8p8"><value name="SUB"><shadow type="variables_get" id="`2.o`k2Sy0`gMO*HS(iv"><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="9n}7o@tX#Au[+nUT^Hrx"><field name="NUM">1</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="*.9cPL|S:aHMiLfpA;,f"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="/;oMcAx}fjZOdCNIuT8x"><field name="NUM">50</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="B(iwcl~`dN;*W+=z2rGm"><field name="NUM">0</field></shadow></value></block></statement><statement name="ELSE"><block type="actuator_neopixel_rgb" id="2N|F[tfGn,%B*o2UCvHH"><value name="SUB"><shadow type="variables_get" id="fuNfe-VLl@VCyG2}9wUw"><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="y`dtgFI;9=7-3Q{x_BKU"><field name="NUM">1</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="C:/#$QYV?hp{`[k~N`w;"><field name="NUM">50</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="%WmORu@`#c}{.Z]WPz2N"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="TYg_Ix1D~Qx2U*SzN#f|"><field name="NUM">0</field></shadow></value></block></statement><next><block type="actuator_neopixel_write" id="rQ1R@TY*U6X*gDZE!V-S"><value name="SUB"><shadow type="variables_get" id="U=j/=)lFRU6la2@qCKbW"><field name="VAR">rgb</field></shadow></value><next><block type="controls_delay" id="xV?RL5dY-k*bU?~#Q}$)"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="`6U4OF#g:WcD/Nt:t^Ig"><field name="NUM">2000</field></shadow></value><next><block type="actuator_neopixel_rgb" id="K9,w4yurle[D/G*kioVG"><value name="SUB"><shadow type="variables_get" id="Dr8tsWeH=Hm1Mg~HhS3L"><field name="VAR">rgb</field></shadow></value><value name="_LED_"><shadow type="math_number" id="~hboUXnHOSF0^xD93G:S"><field name="NUM">1</field></shadow></value><value name="RVALUE"><shadow type="math_number" id=".arXEB{7@iIh.I.7u^Uv"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="-F}{cjjTlaoXb~{HZK`)"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id=":-vcGncYGPZj_(A:kHrd"><field name="NUM">0</field></shadow></value><next><block type="actuator_neopixel_write" id="hcK|y]Du{5Q@)~Kh{O#;"><value name="SUB"><shadow type="variables_get" id="/1wm-yjKou;Oso0w/eQ1"><field name="VAR">rgb</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement></block></next></block></xml>