1 line
6.5 KiB
XML
1 line
6.5 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控青春(NOVA)" shown="block"><variables><variable id="ok:ro0iEW(eJAtg/iAsj">tim</variable></variables><block type="variables_set" id="E}+#GK1G{Y(Zue|mJ/dT" x="0" y="0"><field name="VAR">开始</field><value name="VALUE"><block type="logic_boolean" id="2oIAmO#+aZ@Cl=)(IHzL"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="dpiDOgtm_{;k#[2_CBLT"><field name="VAR">计时</field><value name="VALUE"><block type="math_number" id="Km;$9wdw{Q,02mt/BW1g"><field name="NUM">0</field></block></value><next><block type="system_timer_init" id="FV2/8JV@I}LX7WE^42v+"><value name="SUB"><shadow type="variables_get" id="!!g8Q?W|]Ejf|bfqnWO$"><field name="VAR">tim</field></shadow></value><next><block type="system_timer" id="BIZM)41EWj#qx7w;L]1r"><field name="mode">PERIODIC</field><value name="VAR"><shadow type="variables_get" id="EYy+5/Ch/e_,}ww7nF1C"><field name="VAR">tim</field></shadow></value><value name="period"><shadow type="math_number" id="^7#Sdg!wK8ya9daz!DPr"><field name="NUM">100</field></shadow></value><value name="callback"><shadow type="factory_block_return" id="BY_d59.!4$iBwnec_.?e"><field name="VALUE">tim_callback</field></shadow></value><next><block type="controls_whileUntil" id="tqI($vvrx(?]VAo*kVu!"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="H#z)P.0km[eu)yP#X~Y`"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="Vi(W.CEZZ!J=?mTnIOPi"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="C^#X@M.aB5(W.neDJjm-"><value name="btn"><shadow type="pins_button" id="-|3]6tcT6q@C1#B?g$k1"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="}}9S2}LL)3m208wl,Eu{"><field name="VAR">开始</field><value name="VALUE"><block type="logic_negate" id="#AYXnJ8]`qVhBbeU}^G|"><value name="BOOL"><block type="variables_get" id="^j}`9-.EcPl|bXc5ApE["><field name="VAR">开始</field></block></value></block></value></block></statement><next><block type="controls_if" id="jb`98L9LvHmc;1j0@*-V"><value name="IF0"><block type="logic_operation" id="$nzPhzBNle{!e(A!)=N#"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_was_pressed" id="_PbaDG0[FYjb4G9@-WZu"><value name="btn"><shadow type="pins_button" id="{K-[!VUY4F6d?YF2VS?W"><field name="PIN">B2key</field></shadow></value></block></value><value name="B"><block type="logic_negate" id="pZquXLsQv=U^).S)O66B"><value name="BOOL"><block type="variables_get" id="ZFr=_HMMkFAi`E!PK[9z"><field name="VAR">开始</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="w,d;XFV#9VF#DVK;Nu9X"><field name="VAR">计时</field><value name="VALUE"><block type="math_number" id="6NWv(LBv_j16=Xsiv*oc"><field name="NUM">0</field></block></value><next><block type="display_show_image_or_string_delay" id="ur6@@L~6{I8=.s`T`Ti/"><field name="center">True</field><value name="data"><shadow type="text" id="QW9$3AwKdwR^NrZ)1W8F"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="C.RkmA0iAOKa!QlSI4Na"><value name="VAR"><shadow type="variables_get" id="FH*ik5c!GDrcg?C*5V}|"><field name="VAR">x</field></shadow><block type="variables_get" id="`QD=b):s_jYC6FZ_37!8"><field name="VAR">计时</field></block></value></block></value><value name="space"><shadow type="math_number" id="2mNigU^(yn|?P-STK(pB"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="v,zXu20[FRU;g!pW7+`("><field name="BOOL">TRUE</field></shadow></value></block></next></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="_s-v1t,43Qr9gB91i9c6" x="0" y="423"><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="d;ptSxyAZ:CldIq|fA,8"><value name="VAR"><block type="variables_get" id="pqJ^h#p,EhoWn;U4e5cH"><field name="VAR">计时</field></block></value><next><block type="variables_global" id="rFaDTiyrb1u1SX`pmC4o"><value name="VAR"><block type="variables_get" id="C2Fu:j^{*wX9s^`P,E}."><field name="VAR">开始</field></block></value><next><block type="controls_if" id="NOcTK5WX{2ip,qDjB{H{"><value name="IF0"><block type="variables_get" id="W{C$?EYYZw-+DOMB00))"><field name="VAR">开始</field></block></value><statement name="DO0"><block type="math_selfcalcu" id="AxfVM1-4-m~{yzP?5f#,"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="tAdv8qi)$Y^nnQ.Y`sf@"><field name="VAR">a</field></shadow><block type="variables_get" id="u+=uSJ{gj1dIP:Gj*vKH"><field name="VAR">计时</field></block></value><value name="B"><shadow type="math_number" id="/*g:GLOT7h.ljWY^IQpU"><field name="NUM">1</field></shadow></value><next><block type="display_show_image_or_string_delay" id="{)I35y~sFP_}/eQ2.3xR"><field name="center">True</field><value name="data"><shadow type="text" id="FS*Q);=[icxZ:x~gUvwM"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="yg-WWXB}h(t0vm=MBe}y"><value name="VAR"><shadow type="variables_get" id="#Sf//SI*R}ugDgk5:vY0"><field name="VAR">x</field></shadow><block type="variables_get" id="3k[O~43d93E$Wx.JdDI5"><field name="VAR">计时</field></block></value></block></value><value name="space"><shadow type="math_number" id="UdD3`K|L?m3)Cqq)BR0l"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="g{*p!e*gZ0l*BEWe3sx#"><field name="BOOL">TRUE</field></shadow></value></block></next></block></statement></block></next></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IG1peGdvX25vdmEKZnJvbSBtaXhnb19ub3ZhIGltcG9ydCBvbmJvYXJkX3RmdAoKZGVmIHRpbV9jYWxsYmFjayh0aW0pOgogICAgZ2xvYmFsIOiuoeaXtgogICAgZ2xvYmFsIOW8gOWniwogICAgaWYg5byA5aeLOgogICAgICAgIOiuoeaXtiArPSAxCiAgICAgICAgb25ib2FyZF90ZnQuc2hvd3Moc3RyKOiuoeaXtiksIHNwYWNlPTAsIGNlbnRlcj1UcnVlLHN5bmM9VHJ1ZSkKCgrlvIDlp4sgPSBGYWxzZQrorqHml7YgPSAwCnRpbSA9IG1hY2hpbmUuVGltZXIoMCkKdGltLmluaXQocGVyaW9kID0gMTAwLCBtb2RlPW1hY2hpbmUuVGltZXIuUEVSSU9ESUMsIGNhbGxiYWNrPXRpbV9jYWxsYmFjaykKd2hpbGUgVHJ1ZToKICAgIGlmIG1peGdvX25vdmEuQjFrZXkud2FzX3ByZXNzZWQoKToKICAgICAgICDlvIDlp4sgPSBub3Qg5byA5aeLCiAgICBpZiBtaXhnb19ub3ZhLkIya2V5Lndhc19wcmVzc2VkKCkgYW5kIG5vdCDlvIDlp4s6CiAgICAgICAg6K6h5pe2ID0gMAogICAgICAgIG9uYm9hcmRfdGZ0LnNob3dzKHN0cijorqHml7YpLCBzcGFjZT0wLCBjZW50ZXI9VHJ1ZSxzeW5jPVRydWUpCg==</code> |