Files
mixly3/boards/default/micropython_esp32c3/examples/pM1GyYPLf4md/xQmVvnnfc2Mo.mix
2024-07-23 20:47:22 +08:00

1 line
4.9 KiB
XML

<xml version="Mixly 2.0 rc4" board="Python ESP32-C3@MixGo ME"><block type="storage_fileopen" id="Sqt5HSMRWsx=CQ/s|Y6S" x="-1854" y="-572"><field name="MODE">w</field><value name="FILENAME"><shadow type="text" id="@;cLb9FGS|JQ+LEOwbCn"><field name="TEXT">test.bin</field></shadow></value><value name="FILE"><shadow type="variables_get" id="TK0RDe|V1$zu$0p-2Rtk"><field name="VAR">f</field></shadow></value><next><block type="controls_forEach" id="hlGP{~@)WfSb.eKFZFHH"><value name="LIST"><shadow type="list_many_input" id="~+R1^Qba+!zF;EZQ=kd5"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="JyyB1Pb}ybLh{b171C$e"><value name="FROM"><shadow type="math_number" id="mhBwHKW]j(+[]VQvQ/[z"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="V5?da6MLdw.utdu0ZYMZ"><field name="NUM">100</field></shadow></value><value name="STEP"><shadow type="math_number" id=";cOf]HvZHN9szk|+,nhB"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="XbL.UJts)*vW~9/gE2zK"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="storage_file_write" id="efXfZ`|yNyEv6cFxejnj"><value name="data"><shadow type="text" id="+(WYV3Z[7VSs27D+:X+H"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="Q~M`7K]6;2czs,ZTPhkI"><value name="VAR"><shadow type="variables_get" id="9cZ|f6wC*L1_v?Y]FI{B"><field name="VAR">x</field></shadow><block type="sensor_sound" id="#tQfqN#f(w73oI;^5H0_"></block></value></block></value><value name="FILE"><shadow type="variables_get" id="(#~bbsml$KspQG.x/|M$"><field name="VAR">f</field></shadow></value><next><block type="storage_file_write" id="Tf,A-csKf/P3+j1l;SDC"><value name="data"><shadow type="text" id="WB~nD.lCgX`{#)3M(2:a"><field name="TEXT">Mixly</field></shadow><block type="ascii_to_char" id="=:Uj|UQK4PdUkF{bVyaR"><value name="VAR"><shadow type="math_number" id=":uztkAIFh3+uX!5h#(HB"><field name="NUM">13</field></shadow></value></block></value><value name="FILE"><shadow type="variables_get" id="gf0P1-pu@{_GnwzLI`0:"><field name="VAR">f</field></shadow></value><next><block type="controls_delay_new" id="1ghgy-7JMj~eVtOkF~tu"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="E$t{r+o)3[Ci|-xi(-{#"><field name="NUM">10</field></shadow></value></block></next></block></next></block></statement><next><block type="storage_close_file" id="~MZk6ngHlYvMR+^3m}mF"><value name="FILE"><shadow type="variables_get" id="cLG4!iwICr;v#c=qa#z,"><field name="VAR">f</field></shadow></value><next><block type="storage_fileopen" id="e(!O:TA+_~,mz=sywMrv"><field name="MODE">r</field><value name="FILENAME"><shadow type="text" id="GYw@Mg7sKt.gbxgoL~t0"><field name="TEXT">test.bin</field></shadow></value><value name="FILE"><shadow type="variables_get" id="uk_z:_uNSyf8Sfy+XNDn"><field name="VAR">f</field></shadow></value><next><block type="variables_set" id="iZW@*}V*QkI|o,S]EF--"><field name="VAR">s</field><value name="VALUE"><block type="storage_get_contents_without_para" id="h8s7OR!V2}HgC~KgRr0Q"><field name="MODE">readline</field><value name="FILE"><shadow type="variables_get" id="J1I9-FIS28y**_|JkDAC"><field name="VAR">f</field></shadow></value></block></value><next><block type="controls_whileUntil" id="+4LojAZ5?H^KEt.Oc8{*"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="t`?o+ci2q{nNbK;H(Pk0"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="Zn97:9rKJdTgq[QgiaoC"><field name="VAR">s</field></block></value><statement name="DO"><block type="system_print_inline" id="m?c46WItTXmo9/r7hURb"><value name="VAR"><shadow type="text" id="fZd]f1~OhABqpUv6oU7."><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="K;O5~4rIMw0_H85flN)B"><field name="VAR">s</field></block></value><next><block type="variables_set" id="Q8*P]Eb}]+YKfMi]Ck*J"><field name="VAR">s</field><value name="VALUE"><block type="storage_get_contents_without_para" id="5AIQ|Nk6N0+)HxI8+0DT"><field name="MODE">readline</field><value name="FILE"><shadow type="variables_get" id="sH^f?IXrU+c4nI|9l(8e"><field name="VAR">f</field></shadow></value></block></value></block></next></block></statement><next><block type="storage_close_file" id="[=!BBBbW?(eZrbvB_niY"><value name="FILE"><shadow type="variables_get" id="6{H^a]mrwJy(scOH!m@y"><field name="VAR">f</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>ZnJvbSBtaXhnb19tZSBpbXBvcnQgb25ib2FyZF9zb3VuZAppbXBvcnQgdGltZQppbXBvcnQgbWFjaGluZQoKCmYgPSBvcGVuKCd0ZXN0LmJpbicsICd3JykKZm9yIGkgaW4gcmFuZ2UoMCwgMTAwLCAxKToKICAgIGYud3JpdGUoc3RyKG9uYm9hcmRfc291bmQucmVhZCgpKSkKICAgIGYud3JpdGUoY2hyKDEzKSkKICAgIHRpbWUuc2xlZXBfbXMoMTApCmYuY2xvc2UoKQpmID0gb3BlbigndGVzdC5iaW4nLCAncicpCnMgPSBmLnJlYWRsaW5lKCkKd2hpbGUgczoKICAgIHByaW50KHMsZW5kID0iIikKICAgIHMgPSBmLnJlYWRsaW5lKCkKZi5jbG9zZSgpCg==</code>