Files
mixly3/boards/default/micropython_esp32s2/examples/12-2-输入输出-实时时钟2.mix
2025-08-13 10:15:51 +08:00

1 line
3.8 KiB
XML

<xml version="Mixly 2.0 rc4" board="MixGo CE@MixGo CE"><block type="onboard_RTC_set_datetime" id="3;U~h|uU/6`)G7`FnE#3" inline="true" x="-2187" y="-818"><value name="year"><shadow type="math_number" id=",rgDRjcPJdHU6y/dlOlI"><field name="NUM">2024</field></shadow></value><value name="month"><shadow type="math_number" id="yy`(5OaTkr3DZ[`Ksv(I"><field name="NUM">4</field></shadow></value><value name="day"><shadow type="math_number" id="iA?+f[x@Qi@rVNQE{T+x"><field name="NUM">2</field></shadow></value><value name="hour"><shadow type="math_number" id="-mAs4joL7AHJin1g*,xv"><field name="NUM">21</field></shadow></value><value name="minute"><shadow type="math_number" id="nq^!{r+_X.k69$}!DHAk"><field name="NUM">4</field></shadow></value><value name="second"><shadow type="math_number" id="44z_2YQwresR3VG=2Rp8"><field name="NUM">45</field></shadow></value><next><block type="controls_whileUntil" id="7F(@SqnhAg=2]15OR2tK"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="F=d|(~9+;4ms~t$$.w{i"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="w?o{2k)#JSV;aJ#kHw_l"><field name="VAR">mytup</field><value name="VALUE"><block type="onboard_RTC_get_time" id="U6/ek(l3B1#=W]/{i=ZO"></block></value><next><block type="display_scroll_string" id="]=~D+k/F8:r8TH=L-=Vf"><value name="data"><shadow type="text" id="j}O!DPK^SO|kNY~SC_ft"><field name="TEXT">Mixly</field></shadow><block type="text_format_noreturn" id="X@uk5{;M8bvj1Wu9/.{p" inline="false"><mutation items="3"></mutation><value name="VAR"><shadow type="text" id="fW{6/p2Y3B5n]Mdg2`i7"><field name="TEXT">{}:{}:{}</field></shadow></value><value name="ADD0"><block type="number_to_text" id="wfKSga!ijHE?r0{N`N3I"><value name="VAR"><shadow type="variables_get" id="6QBKI^1K}Hl9iYtRGN+H"><field name="VAR">x</field></shadow><block type="tuple_getIndex" id="lY[-yYiw8,sO1L*w;@[x"><value name="TUP"><shadow type="variables_get" id="3H7]AC,qk}8oA9#T2Mc6"><field name="VAR">mytup</field></shadow></value><value name="AT"><shadow type="math_number" id="*Kn!Nf7lMjKo1@(,^:sr"><field name="NUM">3</field></shadow></value></block></value></block></value><value name="ADD1"><block type="number_to_text" id="+X*Yx~bzz^.[)7k@un/s"><value name="VAR"><shadow type="variables_get" id="I6D+.#mtV|Lje56g2CO-"><field name="VAR">x</field></shadow><block type="tuple_getIndex" id="@R_Y-9)x6hfqKX]q_^J`"><value name="TUP"><shadow type="variables_get" id="m1t[fMP^SQ5nhOXkF;UV"><field name="VAR">mytup</field></shadow></value><value name="AT"><shadow type="math_number" id="$4pB/E8|rl9]e3l?U.TJ"><field name="NUM">4</field></shadow></value></block></value></block></value><value name="ADD2"><block type="number_to_text" id="$m8{Z]{Se3!6Y|z9ll.V"><value name="VAR"><shadow type="variables_get" id="^LP-gn[6D!Cg21a+0r,j"><field name="VAR">x</field></shadow><block type="tuple_getIndex" id="`0su`e7a8OQ!{XogAK^;"><value name="TUP"><shadow type="variables_get" id="(D|_Pla}qP(?jo[GIAbW"><field name="VAR">mytup</field></shadow></value><value name="AT"><shadow type="math_number" id="ZyoBhbKF1@kzLwcpCSjP"><field name="NUM">5</field></shadow></value></block></value></block></value></block></value><next><block type="controls_delay_new" id="qN*;Y6se^c=*-|yw{h,p"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="#}L{{OTC3J]pPIxn4XO`"><field name="NUM">0.5</field></shadow></value></block></next></block></next></block></statement></block></next></block></xml><config>{}</config><code>aW1wb3J0IG50cHRpbWUKaW1wb3J0IHRpbWUKZnJvbSBtaXhnb19jZSBpbXBvcnQgb25ib2FyZF9tYXRyaXgKCgpudHB0aW1lLnNldHRpbWUoKDIwMjQsNCwyLDIxLDA0LDQ1LDAsMCkpCndoaWxlIFRydWU6CiAgICBteXR1cCA9IHRpbWUubG9jYWx0aW1lKCkKICAgIG9uYm9hcmRfbWF0cml4LnNjcm9sbCgne306e306e30nLmZvcm1hdChzdHIobXl0dXBbM10pLCBzdHIobXl0dXBbNF0pLCBzdHIobXl0dXBbNV0pKSkKICAgIHRpbWUuc2xlZXAoMC41KQo=</code>