1 line
5.7 KiB
XML
1 line
5.7 KiB
XML
<xml version="Mixly 2.0 rc4" board="Python ESP32-C2@MixGo MINI"><variables><variable id="ok:ro0iEW(eJAtg/iAsj">tim</variable></variables><block type="variables_set" id="Eu#2m$SWyBL]vot:Jo+:" x="-3000" y="-1011"><field name="VAR">开始</field><value name="VALUE"><block type="logic_boolean" id="Y$MHrb~((S3qK11}yqF6"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="Amh}`]{*W;fdgl07k)ua"><field name="VAR">计时</field><value name="VALUE"><block type="math_number" id="mg1H#^Qqm$|6fLoJ!{oj"><field name="NUM">0</field></block></value><next><block type="system_timer_init" id="iVn}~?ycQFpN,{y~~|*s"><value name="SUB"><shadow type="variables_get" id="oudVenfxu6K8*H:z4CYH"><field name="VAR">tim</field></shadow></value><next><block type="system_timer" id="!JIIEB8m]*rfYhJDFi)+"><field name="mode">PERIODIC</field><value name="VAR"><shadow type="variables_get" id="~LyiW_whnNqc)6d)yne@"><field name="VAR">tim</field></shadow></value><value name="period"><shadow type="math_number" id="^EJ*iQ~J7OtM^;w1I[gK"><field name="NUM">100</field></shadow></value><value name="callback"><shadow type="factory_block_return" id=",#/V61D:8H0r8_nvx/Gi"><field name="VALUE">tim_callback</field></shadow></value><next><block type="controls_whileUntil" id="~1+MM4{89k9a))Rx1@Dc"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="mWvKQsQ|dt,OqM8lc5fs"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="OQYfcu:[mtck.P0^{XLp"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="s-S1KdTe]e2ge]}5b!PE"><value name="btn"><shadow type="pins_button" id="Vteo{NlzWJdYJJ)dkdk-"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="6m3Z^:5uEOb_YlyFninJ"><field name="VAR">开始</field><value name="VALUE"><block type="logic_negate" id="^q7t+rC-/*~$5p?/b3,}"><value name="BOOL"><block type="variables_get" id="0!$/vk8urIjcPPh{j/J1"><field name="VAR">开始</field></block></value></block></value></block></statement><next><block type="controls_if" id="~wu~)?O!z|FWZA0a3YI~"><value name="IF0"><block type="logic_operation" id="65+*,wIKJD?j1i;(U.4~"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_was_pressed" id="8wcn!P}@T*svU9+.=^8*"><value name="btn"><shadow type="pins_button" id="lOiLdtwNnJgP7]lkZa7H"><field name="PIN">B2key</field></shadow></value></block></value><value name="B"><block type="logic_negate" id="tRJBxB!]wAUZ+si6EM{{"><value name="BOOL"><block type="variables_get" id=",]4qKt,b4b^n](egVw0d"><field name="VAR">开始</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="[~qdsocDP7Y]Rw*3~g)9"><field name="VAR">计时</field><value name="VALUE"><block type="math_number" id="4y-9J;IKG-RuY5s~}[{v"><field name="NUM">0</field></block></value></block></statement><next><block type="display_show_image_or_string_delay" id="MtyqmroTye=5CvIvb=h;"><field name="center">False</field><value name="data"><shadow type="text" id="}URQ[mKHuTT9LI)zq8{h"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="cnVKp(K24UwTv`r=v]Bi"><value name="VAR"><shadow type="variables_get" id="C7x4^3aD|E}WHXsz1s_^"><field name="VAR">x</field></shadow><block type="variables_get" id="I`uw9elhE99K;~otD50q"><field name="VAR">计时</field></block></value></block></value><value name="space"><shadow type="math_number" id="n1S4gSI(XExx6tPuy$F:"><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="}j_~Oz}Bq{`~z0c`O,+;" 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="2:=lH-Ci=N?TINs5p!l`"><value name="VAR"><block type="variables_get" id="PPDrkf,_zj(CjIY-#GQs"><field name="VAR">计时</field></block></value><next><block type="variables_global" id="ckk4cHnroNPc:Kj1D2$S"><value name="VAR"><block type="variables_get" id="!RLPP|+,;KW-S+lOH?5i"><field name="VAR">开始</field></block></value><next><block type="controls_if" id="~_6uo~dVRfkim[PGiGo,"><value name="IF0"><block type="variables_get" id="v|rEcW2R8@!(tW]*a}F0"><field name="VAR">开始</field></block></value><statement name="DO0"><block type="math_selfcalcu" id="va9{PZEiY)vSp)^HhP8i"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="7e^.)ZQ?53CMMCOW,ttv"><field name="VAR">a</field></shadow><block type="variables_get" id="h(8y3z?)`:Selrx{Fl:X"><field name="VAR">计时</field></block></value><value name="B"><shadow type="math_number" id="glJv}kcF7Rc7$XhIwG!^"><field name="NUM">1</field></shadow></value></block></statement></block></next></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IG1peGdvX21pbmkKZnJvbSBtaXhnb19taW5pIGltcG9ydCBvbmJvYXJkX21hdHJpeAoKZGVmIHRpbV9jYWxsYmFjayh0aW0pOgogICAgZ2xvYmFsIF9FOF9BRV9BMV9FNl85N19CNgogICAgZ2xvYmFsIF9FNV9CQ184MF9FNV9BN184QgogICAgaWYgX0U1X0JDXzgwX0U1X0E3XzhCOgogICAgICAgIF9FOF9BRV9BMV9FNl85N19CNiArPSAxCgoKCl9FNV9CQ184MF9FNV9BN184QiA9IEZhbHNlCl9FOF9BRV9BMV9FNl85N19CNiA9IDAKdGltID0gbWFjaGluZS5UaW1lcigwKQp0aW0uaW5pdChwZXJpb2QgPSAxMDAsIG1vZGUgPSBtYWNoaW5lLlRpbWVyLlBFUklPRElDLCBjYWxsYmFjayA9IHRpbV9jYWxsYmFjaykKd2hpbGUgVHJ1ZToKICAgIGlmIG1peGdvX21pbmkuQjFrZXkud2FzX3ByZXNzZWQoKToKICAgICAgICBfRTVfQkNfODBfRTVfQTdfOEIgPSBub3QgX0U1X0JDXzgwX0U1X0E3XzhCCiAgICBpZiBtaXhnb19taW5pLkIya2V5Lndhc19wcmVzc2VkKCkgYW5kIG5vdCBfRTVfQkNfODBfRTVfQTdfOEI6CiAgICAgICAgX0U4X0FFX0ExX0U2Xzk3X0I2ID0gMAogICAgb25ib2FyZF9tYXRyaXguc2hvd3Moc3RyKF9FOF9BRV9BMV9FNl85N19CNiksc3BhY2UgPSAwLGNlbnRlciA9IEZhbHNlKQo=</code> |