Files
mixly3/boards/default/micropython_esp32c3/examples/pM1GyYPLf4md/NgBAbVnM8tsA.mix
2024-07-23 20:47:22 +08:00

1 line
5.7 KiB
XML

<xml version="Mixly 2.0 rc4" board="Python ESP32-C3@MixGo ME"><variables><variable id="ok:ro0iEW(eJAtg/iAsj">tim</variable></variables><block type="variables_set" id="vg9b4H_o[rbQ~#MU-N^t" x="-3000" y="-1011"><field name="VAR">开始</field><value name="VALUE"><block type="logic_boolean" id="Xc8LtCx+W6o!vClIK5-2"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id=")$$6Ne+!!@93Mi]50yBS"><field name="VAR">计时</field><value name="VALUE"><block type="math_number" id="ARX3!Zw=2]IDz6_:M.0;"><field name="NUM">0</field></block></value><next><block type="system_timer_init" id="+k.D;W5cmw};)KK/TG+i"><value name="SUB"><shadow type="variables_get" id="pF6Oqd_0xxNW9BU0AmaL"><field name="VAR">tim</field></shadow></value><next><block type="system_timer" id="CACxvokAR}eJI(U[=Skw"><field name="mode">PERIODIC</field><value name="VAR"><shadow type="variables_get" id="##k|y4b)1w@7!z5|hI`d"><field name="VAR">tim</field></shadow></value><value name="period"><shadow type="math_number" id="tYqQ~nD$MIjl]ZtJ3eh#"><field name="NUM">100</field></shadow></value><value name="callback"><shadow type="factory_block_return" id="x#~K`t,A18SQk{$i*7CS"><field name="VALUE">tim_callback</field></shadow></value><next><block type="controls_whileUntil" id="ifI!e4}mj4X-pLEBYD]G"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id=";^$G[IqLsoBH!lT)YuUn"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="Bl_nOH#mCR!)GtmAPnu$"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id=",Kx9UA){}~|~n}Pc!p@B"><value name="btn"><shadow type="pins_button" id="/E]iMu/@V3N`YWY=!K|W"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="*dOzT:muUqBp/EpIV)2o"><field name="VAR">开始</field><value name="VALUE"><block type="logic_negate" id="nwaV5ND0Z@v]V#,h=F^w"><value name="BOOL"><block type="variables_get" id="V}8pcw/2UjA/5@M}h}6$"><field name="VAR">开始</field></block></value></block></value></block></statement><next><block type="controls_if" id="^r,y(V)MzgbXk.[D_hjq"><value name="IF0"><block type="logic_operation" id="R/6cxSm(1h[[pm!.6g!k"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_was_pressed" id="V|/;YHez{7:*SI!7R;j*"><value name="btn"><shadow type="pins_button" id="pgezWfgKe7M8xWLiFOm:"><field name="PIN">B2key</field></shadow></value></block></value><value name="B"><block type="logic_negate" id="c2|k#h:FjThBiXN:Z[?i"><value name="BOOL"><block type="variables_get" id="887_+[hJshi}`;F2Fr`)"><field name="VAR">开始</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="H:0c7:k]ISDlPd}SgDyS"><field name="VAR">计时</field><value name="VALUE"><block type="math_number" id="AJ,w[^ku6wzM}S,.!eKA"><field name="NUM">0</field></block></value></block></statement><next><block type="display_show_image_or_string_delay" id="]f3Z}YgNUEv*sXN~1y9]"><field name="center">False</field><value name="data"><shadow type="text" id="Rjdn)$qxA|j/i;n-ZjAp"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="v@.(@TjT?1nfuD]h~K]~"><value name="VAR"><shadow type="variables_get" id="4gYV_XKuib~Rn}q-lbZv"><field name="VAR">x</field></shadow><block type="variables_get" id="gxmqwwS]NJ+~?m4`~EHo"><field name="VAR">计时</field></block></value></block></value><value name="space"><shadow type="math_number" id="]hs8R;)n9fk$e@jGgt,d"><field name="NUM">0</field></shadow></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="?vlBhs5_qfGZ[_OO/}f#" x="-2972" y="-578"><mutation><arg name="tim" varid="ok:ro0iEW(eJAtg/iAsj"></arg></mutation><field name="NAME">tim_callback</field><statement name="STACK"><block type="variables_global" id="7|fH!mkR{{{=nw9nVO?`"><value name="VAR"><block type="variables_get" id="w-/7I=H4{bt-v[t$P`k4"><field name="VAR">计时</field></block></value><next><block type="variables_global" id="IKzxr_YN`GXs6/sj[||_"><value name="VAR"><block type="variables_get" id="H6:(Dc`A11oeCTzva80^"><field name="VAR">开始</field></block></value><next><block type="controls_if" id="?kb][2asXOc`!QA8pV;l"><value name="IF0"><block type="variables_get" id="[/)Tr#DTrIHeE0rGT:.u"><field name="VAR">开始</field></block></value><statement name="DO0"><block type="math_selfcalcu" id=";]*;)9,sEVXa9T(?jS[3"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="to6Ywu=x)9iuY+|gaTn5"><field name="VAR">a</field></shadow><block type="variables_get" id="IUtp@]qg,^p|ePoBa(f9"><field name="VAR">计时</field></block></value><value name="B"><shadow type="math_number" id="46bUMcu9pcd+(-O=7Nz)"><field name="NUM">1</field></shadow></value></block></statement></block></next></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IG1peGdvX21lCmZyb20gbWl4Z29fbWUgaW1wb3J0IG9uYm9hcmRfbWF0cml4CgpkZWYgdGltX2NhbGxiYWNrKHRpbSk6CiAgICBnbG9iYWwgX0U4X0FFX0ExX0U2Xzk3X0I2CiAgICBnbG9iYWwgX0U1X0JDXzgwX0U1X0E3XzhCCiAgICBpZiBfRTVfQkNfODBfRTVfQTdfOEI6CiAgICAgICAgX0U4X0FFX0ExX0U2Xzk3X0I2ICs9IDEKCgoKX0U1X0JDXzgwX0U1X0E3XzhCID0gRmFsc2UKX0U4X0FFX0ExX0U2Xzk3X0I2ID0gMAp0aW0gPSBtYWNoaW5lLlRpbWVyKDApCnRpbS5pbml0KHBlcmlvZCA9IDEwMCwgbW9kZSA9IG1hY2hpbmUuVGltZXIuUEVSSU9ESUMsIGNhbGxiYWNrID0gdGltX2NhbGxiYWNrKQp3aGlsZSBUcnVlOgogICAgaWYgbWl4Z29fbWUuQjFrZXkud2FzX3ByZXNzZWQoKToKICAgICAgICBfRTVfQkNfODBfRTVfQTdfOEIgPSBub3QgX0U1X0JDXzgwX0U1X0E3XzhCCiAgICBpZiBtaXhnb19tZS5CMmtleS53YXNfcHJlc3NlZCgpIGFuZCBub3QgX0U1X0JDXzgwX0U1X0E3XzhCOgogICAgICAgIF9FOF9BRV9BMV9FNl85N19CNiA9IDAKICAgIG9uYm9hcmRfbWF0cml4LnNob3dzKHN0cihfRThfQUVfQTFfRTZfOTdfQjYpLHNwYWNlID0gMCxjZW50ZXIgPSBGYWxzZSkK</code>