1 line
4.5 KiB
XML
1 line
4.5 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-C5@元控自立(SOWL)" shown="block"><variables><variable id="ok:ro0iEW(eJAtg/iAsj">tim</variable></variables><block type="variables_set" id="pBuAsbQ4/x,(4OlSGIBx" x="-2908" y="-1031"><field name="VAR">开始</field><value name="VALUE"><block type="logic_boolean" id="T|*bh48QHg;ATay;!?yN"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="XNeFz^BvI{;lmp*g!LL;"><field name="VAR">计时</field><value name="VALUE"><block type="math_number" id="#Z(ns.3C3t}!`rvxaD8x"><field name="NUM">0</field></block></value><next><block type="set_system_timer" id="[u+zCz_+y:=I;T$)}#BX"><field name="mode">PERIODIC</field><value name="VAR"><shadow type="variables_get" id="^Mt5L2sHyKjl1`{Dn}yW"><field name="VAR">tim</field></shadow></value><value name="PIN"><shadow type="timer_id_pin" id="jbmX=3JvjQ-Xp,x-/Co["><field name="PIN">0</field></shadow></value><value name="period"><shadow type="math_number" id="s]j!oSF-2QQAHP_4z3jx"><field name="NUM">100</field></shadow></value><value name="callback"><shadow type="factory_block_return" id="hs$^;-Vn;(pRDkggAR?r"><field name="VALUE">tim_callback</field></shadow></value><next><block type="controls_whileUntil" id="aQVpUQm,M*bCpJ1|9_yC"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="DAB~/$_ep}5yNle!~QH`"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="U{a=hn-Lt:D4:x-Z.oQ`"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="{ISR4m`[m+g0l1GSIK2."><value name="btn"><shadow type="pins_button" id="O#bz142N`XMDhA=umw{w"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="rmn_ah;H+TA^BR},aeBf"><field name="VAR">开始</field><value name="VALUE"><block type="logic_negate" id="L`D9q$NWUN#Om(.JSGG{"><value name="BOOL"><block type="variables_get" id="zh_c4T9dQ,|llbUUZn|z"><field name="VAR">开始</field></block></value></block></value></block></statement><next><block type="display_show_image_or_string_delay" id="d.LCD;.5S.Np4`l~H8@w"><field name="center">True</field><value name="data"><shadow type="text" id="rtUxu17fB[WTlhBtyM}e"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="$x#tZ0JEde.*},/*}?X0"><field name="VAR">计时</field></block></value><value name="space"><shadow type="math_number" id="?)y6ygi.|[o)jzqQcj-V"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="$`MNo)`mt?8!|aAwvj+]"><field name="BOOL">TRUE</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="V}kcMbROYm+yg`Bmyn9R" x="-2902" y="-690"><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="u^7vbq0nizF![{yjM{YQ"><value name="VAR"><block type="variables_get" id="8._4/y^fPPrFhf~x,Gsz"><field name="VAR">计时</field></block></value><next><block type="variables_global" id="]Z|]:*B3#0dnZx_,!1PK"><value name="VAR"><block type="variables_get" id="+#T[|/4cpT5lP#?XZg3L"><field name="VAR">开始</field></block></value><next><block type="controls_if" id="Al#ix!qnrs?GI1M^)F6i"><value name="IF0"><block type="variables_get" id="yuD2wdiq4AyHK^S*w}4d"><field name="VAR">开始</field></block></value><statement name="DO0"><block type="math_selfcalcu" id="{sw*Ack5K}[9s,H)qPtO"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="rj(}jTh{uwj1y(06Qk_)"><field name="VAR">a</field></shadow><block type="variables_get" id="vV4)z7l!ZBwWsnCFbEE3"><field name="VAR">计时</field></block></value><value name="B"><shadow type="math_number" id="US$jVDx@#xG=mgi=gE4v"><field name="NUM">1</field></shadow></value></block></statement></block></next></block></next></block></statement></block></xml><config>{"BurnSpeed":{"key":"921600","label":"921600"}}</config><code>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IG1peGdvX3Nvd2wKZnJvbSBtaXhnb19zb3dsIGltcG9ydCBvbmJvYXJkX3RmdAoKCmRlZiB0aW1fY2FsbGJhY2sodGltKToKICAgIGdsb2JhbCDorqHml7YKICAgIGdsb2JhbCDlvIDlp4sKICAgIGlmIOW8gOWnizoKICAgICAgICDorqHml7YgKz0gMQoKCgrlvIDlp4sgPSBGYWxzZQrorqHml7YgPSAwCnRpbSA9IG1hY2hpbmUuVGltZXIoMCxwZXJpb2QgPSAxMDAsIG1vZGU9bWFjaGluZS5UaW1lci5QRVJJT0RJQywgY2FsbGJhY2s9dGltX2NhbGxiYWNrKQp3aGlsZSBUcnVlOgogICAgaWYgbWl4Z29fc293bC5CMWtleS53YXNfcHJlc3NlZCgpOgogICAgICAgIOW8gOWniyA9IG5vdCDlvIDlp4sKICAgIG9uYm9hcmRfdGZ0LnNob3dzKOiuoeaXtiwgc3BhY2U9MCwgY2VudGVyPVRydWUsc3luYz1UcnVlKQo=</code>0wLCBjZW50ZXI9VHJ1ZSxzeW5jPVRydWUpCg==</code> |