1 line
9.1 KiB
XML
1 line
9.1 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-C5@元控自立(SOWL)" shown="block"><block type="variables_set" id="8bdnXN`oLTD3[LGTpmVX" x="-4430" y="-1432"><field name="VAR">车费</field><value name="VALUE"><block type="math_number" id="R;:n:6df;P2$|G,R4+4F"><field name="NUM">2</field></block></value><next><block type="controls_whileUntil" id="Nn|({.b#1u0Hy2@Jn.xa"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="H{ahN~Xz$`4v=.bF$V;y"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="fM~w@V,fl#;.q}[thQf/"><field name="VAR">x</field><value name="VALUE"><block type="mini_g2_rfid_readcontent" id="^YlM.#V@H8kuol?Y_!hQ"><value name="SECTOR"><shadow type="math_number" id="L2ytY$?[d0X2sLLrd/i6"><field name="NUM">0</field></shadow></value></block></value><next><block type="controls_if" id="VGjUUI1yZ,]hZ}^.}~tv"><value name="IF0"><block type="logic_compare" id="U,Ph}^B*5-T2rKj*Y4[*"><field name="OP">NEQ</field><value name="A"><block type="number_to_text" id="odmki^L?.o#D7RtHMoAY"><value name="VAR"><shadow type="variables_get" id="YmjgzQ3Gl~xTo47)#_SS"><field name="VAR">x</field></shadow><block type="variables_get" id="[gen0qX6QyN{RH}L}R,D"><field name="VAR">x</field></block></value></block></value><value name="B"><block type="text" id="x-Tsw?za+m`3MLL!Qi/l"><field name="TEXT">None</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="rt08Ue}XY|V[Mz@Z3|[F"><mutation else="1"></mutation><value name="IF0"><block type="logic_operation" id="!@V-z!2p!7#SVA}Q7~u5"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="MJMyW6}p(oYLHVt8umjm"><field name="OP">NEQ</field><value name="A"><block type="number_to_text" id="P^C`E*k)pDucI}6xFm:_"><value name="VAR"><shadow type="variables_get" id="2]x`mw.]n.sJ8ry8c:gO"><field name="VAR">x</field></shadow><block type="tuple_getIndex" id="kIdDK`0yW,+uPIN)hcrf"><value name="TUP"><shadow type="variables_get" id="-/r9OY;S6,MJg#7=iRe="><field name="VAR">mytup</field></shadow><block type="tuple_totuple" id="~UjM3AgB)7=s93zohw,x"><value name="VAR"><shadow type="variables_get" id="o(#-`{`ga.H+DvLJCQRi"><field name="VAR">x</field></shadow></value></block></value><value name="AT"><shadow type="math_number" id="2GeUKMM!G=hz`rSF6/9O"><field name="NUM">1</field></shadow></value></block></value></block></value><value name="B"><block type="text" id="Qny.M1Ev5dL$[QLsKp~a"><field name="TEXT"></field></block></value></block></value><value name="B"><block type="logic_compare" id="7A3pm;zi#{ub*=Z.wm3_"><field name="OP">NEQ</field><value name="A"><block type="tuple_getIndex" id="A{!)dnr1l6G2@`)Z4sRL"><value name="TUP"><shadow type="variables_get" id="HC5eqqz?Ls;9P)Ky|7gU"><field name="VAR">mytup</field></shadow><block type="tuple_totuple" id="npR5qMaVYKQM;X0zjK_e"><value name="VAR"><shadow type="variables_get" id="?S:PN=;O@vP#75HlrEtu"><field name="VAR">x</field></shadow></value></block></value><value name="AT"><shadow type="math_number" id="2-4jfc@)c:#)3lKn_-=:"><field name="NUM">1</field></shadow></value></block></value><value name="B"><block type="logic_null" id="dxs?]tR#Rx8Mk$FN/fJC"></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="1N1YplM.4im[]rlGHEBg"><field name="VAR">余额</field><value name="VALUE"><block type="variables_change" id="fq5O+$9/y|1w?x.$XGyl"><field name="OP">int</field><value name="MYVALUE"><block type="tuple_getIndex" id="X8vm72IJ}X13UB7Nz~K*"><value name="TUP"><shadow type="variables_get" id="K_QLZYV2z(f-u6bt[#0H"><field name="VAR">mytup</field></shadow><block type="tuple_totuple" id="_x{+:Eyp8#`Y`0Of;Bo4"><value name="VAR"><shadow type="variables_get" id=":zjjyi!LLR4tPQUD.PpA"><field name="VAR">x</field></shadow></value></block></value><value name="AT"><shadow type="math_number" id="!Q|+X[D$}=Q4FC`Co1#P"><field name="NUM">1</field></shadow></value></block></value></block></value><next><block type="controls_if" id="481j/0~/V7$bmhum#HBG"><mutation else="1"></mutation><value name="IF0"><block type="mini_g2_rfid_write_outcome" id="GQ@#bR?#-|79J4I}Fz(:"><value name="SECTOR"><shadow type="math_number" id="WDR1bv3sH4?SU^qf*C_Z"><field name="NUM">0</field></shadow></value><value name="CONTENT"><shadow type="text" id="-G.El6i;GyDrAM@NOpRl"><field name="TEXT">99</field></shadow><block type="number_to_text" id="eMmCjyPVsp*o]Cs60_M["><value name="VAR"><shadow type="variables_get" id=";oP/vK{r=R/B^2y-|Z{g"><field name="VAR">x</field></shadow><block type="math_arithmetic" id="@VGJV]=yCKD9x0NvwJ,e"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="wY#y^U4o-t!!^v1BF[Rt"><field name="NUM">1</field></shadow><block type="variables_get" id="ini#,)QDRiIy6}ZOh`a:"><field name="VAR">余额</field></block></value><value name="B"><shadow type="math_number" id="yoVIWnf)-pkz]RD:;hYL"><field name="NUM">2</field></shadow><block type="variables_get" id="N6iT8?SxhTz9()p)B)c4"><field name="VAR">车费</field></block></value></block></value></block></value></block></value><statement name="DO0"><block type="display_show_image_or_string_delay" id="l_v`(#rlT4=S6zdtl#b("><field name="center">True</field><value name="data"><shadow type="text" id=")NJkirh].M{{-yXUyPH="><field name="TEXT">Mixly</field></shadow><block type="math_arithmetic" id="*OMBf31Up`t?I[Qnm6{b"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="NX1fXl(;Ol=`)kB{^65F"><field name="NUM">1</field></shadow><block type="variables_get" id="MMfLZ@j_I`wuTh:;tdd@"><field name="VAR">余额</field></block></value><value name="B"><shadow type="math_number" id="!6;1|CW.ny3tn;fqa}o="><field name="NUM">2</field></shadow><block type="variables_get" id="T86qDx}74Z{KYrBTkuq/"><field name="VAR">车费</field></block></value></block></value><value name="space"><shadow type="math_number" id="`]pPvGEA2D7m:i+@Dk:n"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="GcU!X541NcYjgFrHBql4"><field name="BOOL">TRUE</field></shadow></value><next><block type="esp32_onboard_music_pitch_with_time" id="l1B@KHr/HGSNfhZJZ?p}"><value name="pitch"><shadow type="pins_tone_notes" id="|09ctLiN#P+_ZpeHd/F}"><field name="PIN">988</field></shadow></value><value name="time"><shadow type="math_number" id="PI.R4Fwo[#sNS/w^{=[W"><field name="NUM">100</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="display_show_image" id="K4FpK,nzx*bKsbaI3MMh"><value name="data"><shadow type="pins_builtinimg" id="3{6z346wo/2vy_mbR[8Q"><field name="PIN">informatio_picture.NO</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="yp$3aGn4*)@D}(rl:00s"><field name="BOOL">TRUE</field></shadow></value><next><block type="esp32_onboard_music_pitch_with_time" id="2K-N5AL9h6i5!k0/]F_I"><value name="pitch"><shadow type="pins_tone_notes" id="tYZ@IxCQ^e/Jyv/!EbD8"><field name="PIN">165</field></shadow></value><value name="time"><shadow type="math_number" id="(.LOZ3.hlmH,Dv3Jx(gR"><field name="NUM">100</field></shadow></value></block></next></block></statement></block></next></block></statement><statement name="ELSE"><block type="display_show_image" id="IsLc`qAs(=@,iy!RiSyW"><value name="data"><shadow type="pins_builtinimg" id="2d:+Cx6V4Scs;Q6[R?z/"><field name="PIN">informatio_picture.NO</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="Mk)*WW(`!s0ST_eMRX0?"><field name="BOOL">TRUE</field></shadow></value><next><block type="esp32_onboard_music_pitch_with_time" id="bf^!)8pqU;2^n5t2e1)s"><value name="pitch"><shadow type="pins_tone_notes" id="|XA6+akL7HO554^/^Bv_"><field name="PIN">165</field></shadow></value><value name="time"><shadow type="math_number" id="]!#fCJrcIS,drnD4a0!{"><field name="NUM">100</field></shadow></value></block></next></block></statement></block></statement><next><block type="controls_delay_new" id="1]B^FEA4tisX()8D,`Un"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="W1jxRi;QIY5*a-`fQJD!"><field name="NUM">0.1</field></shadow></value></block></next></block></next></block></statement></block></next></block></xml><config>{}</config><code>ZnJvbSBzYW50X2d4IGltcG9ydCBleHRfcmZpZApmcm9tIG1peGdvX3NhbnQgaW1wb3J0IG9uYm9hcmRfdGZ0CmZyb20gbWl4Z29fc2FudCBpbXBvcnQgb25ib2FyZF9tdXNpYwpmcm9tIGluZm9ybWF0aW9fcGljdHVyZSBpbXBvcnQgTk8KaW1wb3J0IHRpbWUKCui9pui0uSA9IDIKd2hpbGUgVHJ1ZToKICAgIHggPSBleHRfcmZpZC5yZWFkX2NhcmQoMCkKICAgIGlmIHN0cih4KSAhPSAnTm9uZSc6CiAgICAgICAgaWYgc3RyKHR1cGxlKHgpWzFdKSAhPSAnJyBhbmQgdHVwbGUoeClbMV0gIT0gTm9uZToKICAgICAgICAgICAg5L2Z6aKdID0gaW50KHR1cGxlKHgpWzFdKQogICAgICAgICAgICBpZiBleHRfcmZpZC53cml0ZV9jYXJkKHN0cigo5L2Z6aKdIC0g6L2m6LS5KSksMCk6CiAgICAgICAgICAgICAgICBvbmJvYXJkX3RmdC5zaG93cyjkvZnpop0gLSDovabotLksIHNwYWNlPTAsIGNlbnRlcj1UcnVlLHN5bmM9VHJ1ZSkKICAgICAgICAgICAgICAgIG9uYm9hcmRfbXVzaWMucGl0Y2hfdGltZSg5ODgsIDEwMCkKICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgIG9uYm9hcmRfdGZ0LmltYWdlKE5PLCBjb2xvcj0weGZmZmYsc3luYz1UcnVlKQogICAgICAgICAgICAgICAgb25ib2FyZF9tdXNpYy5waXRjaF90aW1lKDE2NSwgMTAwKQogICAgICAgIGVsc2U6CiAgICAgICAgICAgIG9uYm9hcmRfdGZ0LmltYWdlKE5PLCBjb2xvcj0weGZmZmYsc3luYz1UcnVlKQogICAgICAgICAgICBvbmJvYXJkX211c2ljLnBpdGNoX3RpbWUoMTY1LCAxMDApCiAgICB0aW1lLnNsZWVwKDAuMSkK</code> |