1 line
4.9 KiB
XML
1 line
4.9 KiB
XML
<xml version="Mixly 2.0 rc4" board="Python ESP32@mPython"><block type="storage_fileopen" id="^1B4;[/sUm#=nfCUkZin" x="-1854" y="-572"><field name="MODE">w</field><value name="FILENAME"><shadow type="text" id="wp$=Sr~?6!p-wfqm$a9a"><field name="TEXT">test.bin</field></shadow></value><value name="FILE"><shadow type="variables_get" id="Lc3O6f56!H*8VkZ7cQ{."><field name="VAR">f</field></shadow></value><next><block type="controls_forEach" id="^II=A=/.;Xq../Uf;9EN"><value name="LIST"><shadow type="list_many_input" id="YTc|hb-,;I^yUV9L:(bi"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="xqxMcIMrq3E5)*]oe^R3"><value name="FROM"><shadow type="math_number" id="~n{_D3FG-=m}EftDoLUa"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="v_Gpv/3@;W51n;0Bx0OB"><field name="NUM">100</field></shadow></value><value name="STEP"><shadow type="math_number" id="|]vDWf?Sv.Evc2CZ/7GW"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="aHz@b#.$q(IIRaAPLdIi"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="storage_file_write" id="Vnt.s?WHHT[H(8~=^p?1"><value name="data"><shadow type="text" id="bf_5;.#ooaPL,/tq;c]h"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="Nn1PM,UhN^r!UFPnMDF]"><value name="VAR"><shadow type="variables_get" id="zB7Q_;sXUQ2+058Ck$^X"><field name="VAR">x</field></shadow><block type="sensor_sound" id="ZN4;t/v|]*i?/aK=fBz7"></block></value></block></value><value name="FILE"><shadow type="variables_get" id="6=x~DA9H=Y1!qx{zE4#z"><field name="VAR">f</field></shadow></value><next><block type="storage_file_write" id="eGUc8C5n~}B$a(isQ`R."><value name="data"><shadow type="text" id="7thqV=l^XRs#Mt]tq^8y"><field name="TEXT">Mixly</field></shadow><block type="ascii_to_char" id="4Q]r1Gx8V]h9e=^Qna=+"><value name="VAR"><shadow type="math_number" id="hG7`h,kI:3d$!SXyuElW"><field name="NUM">13</field></shadow></value></block></value><value name="FILE"><shadow type="variables_get" id="ltqnttrOkUW)vF(ZW=^c"><field name="VAR">f</field></shadow></value><next><block type="controls_delay_new" id="(OjhNTzZuG^j-,lEGQRY"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="~9gz)Jn,a.Skx)_J-,FW"><field name="NUM">10</field></shadow></value></block></next></block></next></block></statement><next><block type="storage_close_file" id="5X.}*_hYq)M#X!HxJK#y"><value name="FILE"><shadow type="variables_get" id="_+MaBKozX;m33*+s~XSF"><field name="VAR">f</field></shadow></value><next><block type="storage_fileopen" id="D*]7~/+6g;[W8H_9qX7a"><field name="MODE">r</field><value name="FILENAME"><shadow type="text" id="lsL+Fq*#Tw|uT-z[p;nw"><field name="TEXT">test.bin</field></shadow></value><value name="FILE"><shadow type="variables_get" id="~tvMJ+)gZ^mJ=-O,{fkC"><field name="VAR">f</field></shadow></value><next><block type="variables_set" id="TWo-=wuhkR0~LS8_G$;)"><field name="VAR">s</field><value name="VALUE"><block type="storage_get_contents_without_para" id="3asl=4C*(zl^h0^Qk@)!"><field name="MODE">readline</field><value name="FILE"><shadow type="variables_get" id="RH*2lf(aDJ(LraXmE:f$"><field name="VAR">f</field></shadow></value></block></value><next><block type="controls_whileUntil" id="bTXJcfbD1~kTZ[.rMdH8"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="j)KQgpHE:Xm,`:,ooiqz"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="sCE_O0Pe_L;/=d9@DTqC"><field name="VAR">s</field></block></value><statement name="DO"><block type="system_print_inline" id="Ok+sG{-81+Q63`)2loH+"><value name="VAR"><shadow type="text" id="6T,NgHYV]ftz8#Opxj-a"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="92XKNdD1MJv,x2+S^M@("><field name="VAR">s</field></block></value><next><block type="variables_set" id="w(ZXWv^?0.V~FIjlk$Lu"><field name="VAR">s</field><value name="VALUE"><block type="storage_get_contents_without_para" id="Uja,*#8P=lrfh/;$?pta"><field name="MODE">readline</field><value name="FILE"><shadow type="variables_get" id="I/t$hbvJ-REfn0w14?G]"><field name="VAR">f</field></shadow></value></block></value></block></next></block></statement><next><block type="storage_close_file" id="*LhJi:U8oJN}rbjzGH]V"><value name="FILE"><shadow type="variables_get" id="p+h+_~y|i=C,t8@F:6t@"><field name="VAR">f</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>ZnJvbSBtcHl0aG9uIGltcG9ydCBvbmJvYXJkX3NvdW5kCmltcG9ydCB0aW1lCmltcG9ydCBtYWNoaW5lCgoKZiA9IG9wZW4oJ3Rlc3QuYmluJywgJ3cnKQpmb3IgaSBpbiByYW5nZSgwLCAxMDAsIDEpOgogICAgZi53cml0ZShzdHIob25ib2FyZF9zb3VuZC5zb3VuZGxldmVsKCkpKQogICAgZi53cml0ZShjaHIoMTMpKQogICAgdGltZS5zbGVlcF9tcygxMCkKZi5jbG9zZSgpCmYgPSBvcGVuKCd0ZXN0LmJpbicsICdyJykKcyA9IGYucmVhZGxpbmUoKQp3aGlsZSBzOgogICAgcHJpbnQocyxlbmQgPSIiKQogICAgcyA9IGYucmVhZGxpbmUoKQpmLmNsb3NlKCkK</code> |