1 line
13 KiB
XML
1 line
13 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控自强(SANT)" shown="block"><block type="controls_whileUntil" id="3Co9S*#]t|c(?Rid$VT|" x="-3909" y="-1427"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="o:A(VkTD}xrJic$]5rh#"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="NGrXGEHuB]DZ)v^L{[@-"><field name="VAR">x</field><value name="VALUE"><block type="mini_g2_rfid_readcontent" id="!!yD])F)9TDqApK[0Sjf"><value name="SECTOR"><shadow type="math_number" id="bL@M;Z!=9^qxBxN2@?sv"><field name="NUM">0</field></shadow></value></block></value><next><block type="controls_if" id="Z~:mc9Rk+3_$+WPQ-XK;"><value name="IF0"><block type="logic_compare" id="nwj07[t+(gT3GK?T~JwC"><field name="OP">NEQ</field><value name="A"><block type="number_to_text" id="FnftrtQ,`:MB?0:l_DG0"><value name="VAR"><shadow type="variables_get" id="`#AK|(RyOxXT.u!qWclF"><field name="VAR">x</field></shadow><block type="variables_get" id="$`#Vx!s/;cJ^=*rQuF/O"><field name="VAR">x</field></block></value></block></value><value name="B"><block type="text" id="oV?[wx{aR|:zmSDb@scN"><field name="TEXT">None</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="GnrA@L{ipandR#PHi|rt"><mutation else="1"></mutation><value name="IF0"><block type="logic_operation" id="0JaHQ^A|LO]FhS_htw=R"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="yobqD(I^L(9FbxIzhEx^"><field name="OP">NEQ</field><value name="A"><block type="number_to_text" id=",dw,.9fA$Tc@8v[UX+L/"><value name="VAR"><shadow type="variables_get" id="I5|K/KAEym-6*WxU!C}Y"><field name="VAR">x</field></shadow><block type="tuple_getIndex" id="n[-,!Xb/|p5#/6r_i[xY"><value name="TUP"><shadow type="variables_get" id="Vi7~6^3@F{`n`Z_ph=w`"><field name="VAR">mytup</field></shadow><block type="tuple_totuple" id="[|W4sg1cpCLCg/5Oi!OE"><value name="VAR"><shadow type="variables_get" id="V-N@j/.t_8ko]/,+5+D*"><field name="VAR">x</field></shadow></value></block></value><value name="AT"><shadow type="math_number" id="uzEb6P^AE7WuWhO;F3T2"><field name="NUM">1</field></shadow></value></block></value></block></value><value name="B"><block type="text" id="e2;lJ5(Twti3t_tz{RZ_"><field name="TEXT"></field></block></value></block></value><value name="B"><block type="logic_compare" id="nh3~6u|w=L^.R]666KnZ"><field name="OP">NEQ</field><value name="A"><block type="tuple_getIndex" id="=HjIw=n3w2gZ]wP2|[H9"><value name="TUP"><shadow type="variables_get" id="khm2mie@*L~qFPt||z*#"><field name="VAR">mytup</field></shadow><block type="tuple_totuple" id="p)+yPNw=:oJ}Bvv1Ae@g"><value name="VAR"><shadow type="variables_get" id="LWO6{0MjQ2#q(a}7Yz=N"><field name="VAR">x</field></shadow></value></block></value><value name="AT"><shadow type="math_number" id="zdin?#_=-LJisNdz~8Y;"><field name="NUM">1</field></shadow></value></block></value><value name="B"><block type="logic_null" id="`*=Jl]xr{+wUP;LeN|Po"></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id=")32:x#)aBDIM)C@tKs17"><field name="VAR">余额</field><value name="VALUE"><block type="variables_change" id="Zy0c*UOP29x-G.a/H)-E"><field name="OP">int</field><value name="MYVALUE"><block type="tuple_getIndex" id=")f.TTyW]_I1s?j`cQ|IU"><value name="TUP"><shadow type="variables_get" id="u]PO9*h?h@n00nhsNUI`"><field name="VAR">mytup</field></shadow><block type="tuple_totuple" id="KR-Fdl|WH!zS^sz=0C~?"><value name="VAR"><shadow type="variables_get" id="${7/p0H4f#Uoi$q=c8ki"><field name="VAR">x</field></shadow></value></block></value><value name="AT"><shadow type="math_number" id="C1_;R1UA_V30w[+dP?|#"><field name="NUM">1</field></shadow></value></block></value></block></value></block></statement><statement name="ELSE"><block type="variables_set" id="/=RbFgZ(vOBZFsh;2,Z|"><field name="VAR">余额</field><value name="VALUE"><block type="math_number" id="5S_]sycA_-@HKHf1$3IC"><field name="NUM">-1</field></block></value></block></statement><next><block type="display_show_image_or_string_delay" id="vZ#Vbv?y.4,Rj]Ss!!.9"><field name="center">True</field><value name="data"><shadow type="text" id="U$8c35chqkl81qC`u,]b"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="HFd5tPxNZ{5`!Y=VmSZ*"><field name="VAR">余额</field></block></value><value name="space"><shadow type="math_number" id="-?nuW}^}Ay7A`RYP5OEk"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="JdbTPD^bHd0AebS+M,7*"><field name="BOOL">TRUE</field></shadow></value></block></next></block></statement><next><block type="controls_if" id="o.~/XlspkqrMA@1Js35G"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="]t-/WNM#}iX3j}mImeGb"><value name="btn"><shadow type="pins_button" id="U7S2G0.bruS~H2-E`~.Y"><field name="PIN">B2key</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="w.`/)5)B0a8Evfu#6JZ9"><field name="VAR">x</field><value name="VALUE"><block type="mini_g2_rfid_readcontent" id="@H$7!b~O3qSYNPT^PqbJ"><value name="SECTOR"><shadow type="math_number" id="EmXoRWa2;q]0U+QVXLlX"><field name="NUM">0</field></shadow></value></block></value><next><block type="controls_if" id="f3jX2SVMVm2f;ikCwTRJ"><value name="IF0"><block type="logic_compare" id="+F.4QT)rC:~UpJxsqlqo"><field name="OP">NEQ</field><value name="A"><block type="number_to_text" id="use`VPJ#V8H#RWEn3O/A"><value name="VAR"><shadow type="variables_get" id="~XlZp;0|[yn|mFGZIwt-"><field name="VAR">x</field></shadow><block type="variables_get" id="Woh(6t,S#NFL{d~|sQ+w"><field name="VAR">x</field></block></value></block></value><value name="B"><block type="text" id="]!+=,v,B8x7JmX3nR4T)"><field name="TEXT">None</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="duc+=;OcV=z#QscN1-s["><mutation else="1"></mutation><value name="IF0"><block type="logic_operation" id=")BRWqvkLush/}(aSwL?}"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="X3R7CL1Bz0?vfW`R!A1+"><field name="OP">NEQ</field><value name="A"><block type="number_to_text" id="4bLhwksL2hv;Pp1xLB4s"><value name="VAR"><shadow type="variables_get" id="RXs|M/F7+M/TvR4F)pi~"><field name="VAR">x</field></shadow><block type="tuple_getIndex" id="Qy?he4!ejA|a{:0yZMs#"><value name="TUP"><shadow type="variables_get" id="YRV}6P_awmJs[A-:Vvy5"><field name="VAR">mytup</field></shadow><block type="tuple_totuple" id="iIA+ht;/sPt?b.(7TmQH"><value name="VAR"><shadow type="variables_get" id=")_4cyGNp[.@cp5Vtz_$P"><field name="VAR">x</field></shadow></value></block></value><value name="AT"><shadow type="math_number" id="D@Ow=PaF#m$pZ2C,uLel"><field name="NUM">1</field></shadow></value></block></value></block></value><value name="B"><block type="text" id="dAV7QdwaZ[3,WAaLq+z6"><field name="TEXT"></field></block></value></block></value><value name="B"><block type="logic_compare" id="M^y1l*sCML/=LzOXBU6{"><field name="OP">NEQ</field><value name="A"><block type="tuple_getIndex" id="PyKNf]FAW.dzD3h$5g{I"><value name="TUP"><shadow type="variables_get" id="^6*8m5`A=(_k!_(?{r^f"><field name="VAR">mytup</field></shadow><block type="tuple_totuple" id="yPt7+,`jAQd_{J!rr.)l"><value name="VAR"><shadow type="variables_get" id="1oFZ[F_hm2xGPMLDV:P2"><field name="VAR">x</field></shadow></value></block></value><value name="AT"><shadow type="math_number" id="[il_{a9xLigN1W.]Y#EE"><field name="NUM">1</field></shadow></value></block></value><value name="B"><block type="logic_null" id="}ByE?TZ|l?mpl};]8QJw"></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="J8N-XHnkw[3r1qP}Lr|a"><field name="VAR">余额</field><value name="VALUE"><block type="variables_change" id="yMBg-Q(#!CrY4=!]X8K|"><field name="OP">int</field><value name="MYVALUE"><block type="tuple_getIndex" id="+.R9F]GbM.-!Pq2+{yeY"><value name="TUP"><shadow type="variables_get" id="=aeLiGV3w~,oec1GvnEO"><field name="VAR">mytup</field></shadow><block type="tuple_totuple" id="~r!;vZLPdDir-g-m`5LN"><value name="VAR"><shadow type="variables_get" id="1)@FT~fFP9515ig,7lkr"><field name="VAR">x</field></shadow></value></block></value><value name="AT"><shadow type="math_number" id="Zb2eyLDw-}hpJSbuk-?0"><field name="NUM">1</field></shadow></value></block></value></block></value></block></statement><statement name="ELSE"><block type="variables_set" id="Y-3YptrCAG?rsh@Kq1ZX"><field name="VAR">余额</field><value name="VALUE"><block type="math_number" id="KrqhBMJ/OlHGmPcfu}j!"><field name="NUM">0</field></block></value></block></statement><next><block type="controls_if" id="8QE;};wKV?QGBn?FMH(="><mutation else="1"></mutation><value name="IF0"><block type="mini_g2_rfid_write_outcome" id="!_ULygtZH*CE*C*vsL,4"><value name="SECTOR"><shadow type="math_number" id="j4Xm9qc0EXi-~~:EL=C,"><field name="NUM">0</field></shadow></value><value name="CONTENT"><shadow type="text" id="Tm;j`-v1)V$U4x?c:1Q+"><field name="TEXT">99</field></shadow><block type="number_to_text" id="wGO3OsEo0TbQmkN??`Vc"><value name="VAR"><shadow type="variables_get" id="AdJ(0fGXdL)9/~wsO,oL"><field name="VAR">x</field></shadow><block type="math_arithmetic" id="u8ox!sl4@Zc*1h_n$1a/"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="E)E?iz~yOlUja;fU7EXs"><field name="NUM">1</field></shadow><block type="variables_get" id="*9HmxZfoJI__Jv0QH!I3"><field name="VAR">余额</field></block></value><value name="B"><shadow type="math_number" id="a[REeo^HX?Cw;FeRS`m,"><field name="NUM">10</field></shadow></value></block></value></block></value></block></value><statement name="DO0"><block type="display_show_image" id="X=X0qyHQv$VQ}WWjS;)x"><value name="data"><shadow type="pins_builtinimg" id="/*WkLDlq:7=zzs9?xfk-"><field name="PIN">informatio_picture.YES</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="yJ}~7k2KsoGWwg]h|q2X"><field name="BOOL">TRUE</field></shadow></value><next><block type="esp32_onboard_music_pitch_with_time" id="-iN[:Kv(Ovp7W4:]Rc.+"><value name="pitch"><shadow type="pins_tone_notes" id="_oK9IwyU5*nr|1txuV`3"><field name="PIN">988</field></shadow></value><value name="time"><shadow type="math_number" id="[+B!|bL-i{/JU^.?Sm;5"><field name="NUM">100</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="display_show_image" id="6#v)1Teie}d7JK}kQ~jc"><value name="data"><shadow type="pins_builtinimg" id="/Z#McL$?RU{_fbzDiz^!"><field name="PIN">informatio_picture.NO</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="JC1w9?tq?B1y7l;!}CK7"><field name="BOOL">TRUE</field></shadow></value><next><block type="esp32_onboard_music_pitch_with_time" id="U.T+v}RW,Hz]7]c_Fgoe"><value name="pitch"><shadow type="pins_tone_notes" id="vPT|={:V$a~MFuWpaq!/"><field name="PIN">165</field></shadow></value><value name="time"><shadow type="math_number" id="XGZ=oR,k!0.94R{W1zH="><field name="NUM">100</field></shadow></value></block></next></block></statement></block></next></block></statement></block></next></block></statement><next><block type="controls_delay_new" id="MF0/jFOp!8!eX=VoO[f8"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="Zv[bE:|VI@8{Q$===K$E"><field name="NUM">0.1</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml><config>{}</config><code>ZnJvbSBzYW50X2d4IGltcG9ydCBleHRfcmZpZApmcm9tIG1peGdvX3NhbnQgaW1wb3J0IG9uYm9hcmRfdGZ0CmltcG9ydCBtaXhnb19zYW50CmZyb20gaW5mb3JtYXRpb19waWN0dXJlIGltcG9ydCBZRVMKZnJvbSBtaXhnb19zYW50IGltcG9ydCBvbmJvYXJkX211c2ljCmZyb20gaW5mb3JtYXRpb19waWN0dXJlIGltcG9ydCBOTwppbXBvcnQgdGltZQoKd2hpbGUgVHJ1ZToKICAgIHggPSBleHRfcmZpZC5yZWFkX2NhcmQoMCkKICAgIGlmIHN0cih4KSAhPSAnTm9uZSc6CiAgICAgICAgaWYgc3RyKHR1cGxlKHgpWzFdKSAhPSAnJyBhbmQgdHVwbGUoeClbMV0gIT0gTm9uZToKICAgICAgICAgICAg5L2Z6aKdID0gaW50KHR1cGxlKHgpWzFdKQogICAgICAgIGVsc2U6CiAgICAgICAgICAgIOS9meminSA9IC0xCiAgICAgICAgb25ib2FyZF90ZnQuc2hvd3Mo5L2Z6aKdLCBzcGFjZT0wLCBjZW50ZXI9VHJ1ZSxzeW5jPVRydWUpCiAgICBpZiBtaXhnb19zYW50LkIya2V5Lndhc19wcmVzc2VkKCk6CiAgICAgICAgeCA9IGV4dF9yZmlkLnJlYWRfY2FyZCgwKQogICAgICAgIGlmIHN0cih4KSAhPSAnTm9uZSc6CiAgICAgICAgICAgIGlmIHN0cih0dXBsZSh4KVsxXSkgIT0gJycgYW5kIHR1cGxlKHgpWzFdICE9IE5vbmU6CiAgICAgICAgICAgICAgICDkvZnpop0gPSBpbnQodHVwbGUoeClbMV0pCiAgICAgICAgICAgIGVsc2U6CiAgICAgICAgICAgICAgICDkvZnpop0gPSAwCiAgICAgICAgICAgIGlmIGV4dF9yZmlkLndyaXRlX2NhcmQoc3RyKCjkvZnpop0gKyAxMCkpLDApOgogICAgICAgICAgICAgICAgb25ib2FyZF90ZnQuaW1hZ2UoWUVTLCBjb2xvcj0weGZmZmYsc3luYz1UcnVlKQogICAgICAgICAgICAgICAgb25ib2FyZF9tdXNpYy5waXRjaF90aW1lKDk4OCwgMTAwKQogICAgICAgICAgICBlbHNlOgogICAgICAgICAgICAgICAgb25ib2FyZF90ZnQuaW1hZ2UoTk8sIGNvbG9yPTB4ZmZmZixzeW5jPVRydWUpCiAgICAgICAgICAgICAgICBvbmJvYXJkX211c2ljLnBpdGNoX3RpbWUoMTY1LCAxMDApCiAgICB0aW1lLnNsZWVwKDAuMSkK</code> |