1 line
5.5 KiB
XML
1 line
5.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="JultEx:iVHH6HtR6X_;$" x="-3000" y="-1011"><field name="VAR">开始</field><value name="VALUE"><block type="logic_boolean" id="kU(k(3ij`k!Wzu94[t;8"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="I#U{W/5|[Vx~=50SVxp`"><field name="VAR">计时</field><value name="VALUE"><block type="math_number" id="80W}UtnmlS0kKk}ecAQh"><field name="NUM">0</field></block></value><next><block type="set_system_timer" id="dMzu,?Sh)22l^@^y=1C|"><field name="mode">PERIODIC</field><value name="VAR"><shadow type="variables_get" id="lj~}1Ph^hE!qH}uRfaf`"><field name="VAR">tim</field></shadow></value><value name="PIN"><shadow type="timer_id_pin" id="vkO4XwiVP]4_D!_-,]Sp"><field name="PIN">0</field></shadow></value><value name="period"><shadow type="math_number" id="/5qBpWRz4Qz}Ti9E_VR~"><field name="NUM">100</field></shadow></value><value name="callback"><shadow type="factory_block_return" id="Yuq:@jp]pzk3k?lwAq:T"><field name="VALUE">tim_callback</field></shadow></value><next><block type="controls_whileUntil" id="sfe9GG{,~Of5$K,:*6g|"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="_:(v01T:_#?8edY{_v:p"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="Sj7f(6Wb6NOIOX+!Rl/_"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="#;gX/U}N;]RrX|mq/W:I"><value name="btn"><shadow type="pins_button" id=";s!N/-5EFt.$D5RY3$5H"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="gs*am4~OTF=J`N1`K)9r"><field name="VAR">开始</field><value name="VALUE"><block type="logic_negate" id=",DJV_v]/J{YCAMdlQS#S"><value name="BOOL"><block type="variables_get" id="4?=/wrhOt`jXdkV$Nvwf"><field name="VAR">开始</field></block></value></block></value></block></statement><next><block type="controls_if" id="7RxfeoqBa36`[V,zXCA,"><value name="IF0"><block type="logic_operation" id="l9R}FH})?+#R0.it2lkN"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_was_pressed" id="#N,*4Anc=qmc[M$qgmnv"><value name="btn"><shadow type="pins_button" id="I1xN5Jh[9yG-XDASy9o^"><field name="PIN">B2key</field></shadow></value></block></value><value name="B"><block type="logic_negate" id=":M*.39vna:N3bnk*}E@b"><value name="BOOL"><block type="variables_get" id="wzKdgQ6EV3cjs@[;)~vB"><field name="VAR">开始</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="mCh|bF-J1.$r6si7xKY-"><field name="VAR">计时</field><value name="VALUE"><block type="math_number" id="FLL?1|`A4rQAG^.9V?_1"><field name="NUM">0</field></block></value></block></statement><next><block type="display_show_image_or_string_delay" id="NFL3TJ9yH:?/V3]#P!Xh"><field name="center">True</field><value name="data"><shadow type="text" id="r?ApHkLlS]JG9GQ)B-iq"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="*yiQp$^P3ym~U-RkD/(i"><field name="VAR">计时</field></block></value><value name="space"><shadow type="math_number" id="Id_RL~Scoheb8FR}b6V?"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="E,i`Q{I+r#706uEv=KIo"><field name="BOOL">TRUE</field></shadow></value></block></next></block></next></block></statement></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="^P^df+^wWH_}!KeX(Dv;" x="-2991" y="-622"><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="?:6}7JSs.=x?Y^}2f#m;"><value name="VAR"><block type="variables_get" id="TiqFhA6h!MKvM,Y+,T/6"><field name="VAR">计时</field></block></value><next><block type="variables_global" id="R#Wcub,RB;Yunq,2/B+["><value name="VAR"><block type="variables_get" id="0m$o5H4x6a`k@lPuE-sm"><field name="VAR">开始</field></block></value><next><block type="controls_if" id="eLylD{_+jBb^N_MxNss["><value name="IF0"><block type="variables_get" id="ln!Kkj{U,7TZXF2ACLiq"><field name="VAR">开始</field></block></value><statement name="DO0"><block type="math_selfcalcu" id="sY^|{,ZgJMH3;I-rMIV?"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="s_/Xc5Qc:.`|LiG.XPSF"><field name="VAR">a</field></shadow><block type="variables_get" id="[cMpEz](]y+{C^hJMx7y"><field name="VAR">计时</field></block></value><value name="B"><shadow type="math_number" id="Vd*s.P?gIk2]@_NaE8}l"><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>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IG1peGdvX3Nvd2wKZnJvbSBtaXhnb19zb3dsIGltcG9ydCBvbmJvYXJkX3RmdAoKCmRlZiB0aW1fY2FsbGJhY2sodGltKToKICAgIGdsb2JhbCDorqHml7YKICAgIGdsb2JhbCDlvIDlp4sKICAgIGlmIOW8gOWnizoKICAgICAgICDorqHml7YgKz0gMQoKCgrlvIDlp4sgPSBGYWxzZQrorqHml7YgPSAwCnRpbSA9IG1hY2hpbmUuVGltZXIoMCxwZXJpb2QgPSAxMDAsIG1vZGU9bWFjaGluZS5UaW1lci5QRVJJT0RJQywgY2FsbGJhY2s9dGltX2NhbGxiYWNrKQp3aGlsZSBUcnVlOgogICAgaWYgbWl4Z29fc293bC5CMWtleS53YXNfcHJlc3NlZCgpOgogICAgICAgIOW8gOWniyA9IG5vdCDlvIDlp4sKICAgIGlmIG1peGdvX3Nvd2wuQjJrZXkud2FzX3ByZXNzZWQoKSBhbmQgbm90IOW8gOWnizoKICAgICAgICDorqHml7YgPSAwCiAgICBvbmJvYXJkX3RmdC5zaG93cyjorqHml7YsIHNwYWNlPTAsIGNlbnRlcj1UcnVlLHN5bmM9VHJ1ZSkK</code>U9MCwgY2VudGVyPVRydWUsc3luYz1UcnVlKQo=</code> |