1 line
15 KiB
XML
1 line
15 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控自强(SANT)" shown="block"><variables><variable id="x@Yfw8DrgkM3CEl{odMY">client</variable><variable id="Q.[d]Bc~)FuhqVb/l{Uh">topic</variable><variable id="0.A^[Eto)4wE7Tef?SZQ">msg</variable></variables><block type="variables_set" id="o]qvl@z^+5FFT4Kne1gH" x="-2502" y="-717"><field name="VAR">开始答题</field><value name="VALUE"><block type="logic_boolean" id="eFU7_lQx?XHzl#Ew#Njy"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="ql1y;J7~*.DDsw/nmmEC"><field name="VAR">答题结果</field><value name="VALUE"><block type="text" id="gGfez)2h0n{Io$V}ws!,"><field name="TEXT">==</field></block></value><next><block type="iot_wifi_connect" id="Fm[1ePor!~82lMIg#ni$"><value name="WIFINAME"><shadow type="text" id="HP+-20pEXU}+;C^a`Z9i"><field name="TEXT">fuhua3</field></shadow></value><value name="PASSWORD"><shadow type="text" id="fl~TSUq*;Zfy29{m1`CC"><field name="TEXT">12345678</field></shadow></value><next><block type="IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE" id="K-9g$*[NZHBy.e]iX@Wo"><value name="SERVER"><shadow type="text" id="UfR+}x2aYNqY:IYk.7?J"><field name="TEXT">mixio.mixly.cn</field></shadow></value><value name="KEY"><shadow type="factory_block_return" id="y4:n3eO5^Bz2vz[S9(OW"><field name="VALUE">04f28f</field></shadow></value><next><block type="IOT_MIXIO_SUBSCRIBE" id="1*l3p@n$NXL;YplJQdj5"><value name="TOPIC"><shadow type="text" id="UQyM1$jG9oJI`xsA8|@?"><field name="TEXT">开始答题</field></shadow></value><value name="METHOD"><shadow type="factory_block_return" id="6=5S@lkk{J]_as?H|u:s"><field name="VALUE">method</field></shadow></value><next><block type="controls_whileUntil" id="@[P_J.kjXCCMp7NA~d[_"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="zOFHJQ^g=2*H!c!gTK+="><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="iot_mixio_check" id="jFor`fFGZp=7M@YH.B7x"><next><block type="controls_if" id="D.pjfG4oRm`@fw@KPO[g"><mutation else="1"></mutation><value name="IF0"><block type="variables_get" id="eikG7NL~;7FcQT8fD3WW"><field name="VAR">开始答题</field></block></value><statement name="DO0"><block type="controls_if" id=".,z6jUcJqpG+=x}s-0_q"><mutation elseif="3"></mutation><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="!yRHYU7QzV0)7w7`@Jk`"><value name="btn"><shadow type="pins_button" id=".8Zp=U+u`Vk5o84?c!K7"><field name="PIN">A1key</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="xOuU/9ujVcsvuouYU2s^"><field name="VAR">答题结果</field><value name="VALUE"><block type="text_join" id="4nN;Cm9pBF_};`uiw:.G"><value name="A"><shadow type="text" id="hpP-).J(]VrR$B1YHmj$"><field name="TEXT">Hello</field></shadow><block type="text_replace" id="egrVWzv5=|B.l$l*|^eV"><value name="VAR"><shadow type="text" id="S2,lHvpJ=5-VAu^M[Cm{"><field name="TEXT">Hello,mixly</field></shadow><block type="variables_get" id="r_g!7(,FxVi6|GPJ(@*l"><field name="VAR">答题结果</field></block></value><value name="STR1"><shadow type="text" id="Xi49k4({1W#zgHuhHF|*"><field name="TEXT">A</field></shadow></value><value name="STR2"><shadow type="text" id="tybCLphub[OF#!G.-[O#"><field name="TEXT"></field></shadow></value></block></value><value name="B"><shadow type="text" id="fTZQgJmd/.AJVQDC(ku("><field name="TEXT">A</field></shadow></value></block></value></block></statement><value name="IF1"><block type="sensor_mixgo_button_was_pressed" id="-2dfZ=jev^#z+*7Z1/|i"><value name="btn"><shadow type="pins_button" id="*JH=9w|vz2{*!*zm!?D."><field name="PIN">A2key</field></shadow></value></block></value><statement name="DO1"><block type="variables_set" id=":||~blml[}/j1+q_F]dQ"><field name="VAR">答题结果</field><value name="VALUE"><block type="text_join" id="aOt(UK)2.(/,WfNLPbT/"><value name="A"><shadow type="text" id="k`nfuNin5+2X6$5[E{aY"><field name="TEXT">Hello</field></shadow><block type="text_replace" id="tz-)pEN*Um3i[y@-$e]o"><value name="VAR"><shadow type="text" id="A(p8)$tFe]Ap|Jb+{ZT1"><field name="TEXT">Hello,mixly</field></shadow><block type="variables_get" id="J3k!}zEuWI/];U,UC#N8"><field name="VAR">答题结果</field></block></value><value name="STR1"><shadow type="text" id="CsUj7{S2ylf~*!Hfg1[$"><field name="TEXT">B</field></shadow></value><value name="STR2"><shadow type="text" id="SdASMkiG`S?Wn[D{6iYx"><field name="TEXT"></field></shadow></value></block></value><value name="B"><shadow type="text" id="-Vg]H~nW8X*3Qmqnh*9N"><field name="TEXT">B</field></shadow></value></block></value></block></statement><value name="IF2"><block type="sensor_mixgo_button_was_pressed" id="3}t;a:e(*@HY1Si:LWI3"><value name="btn"><shadow type="pins_button" id="-g*cMq)rSX=dw)OtGfDF"><field name="PIN">A3key</field></shadow></value></block></value><statement name="DO2"><block type="variables_set" id="N=6qPL0x!GlW$GrL2{cG"><field name="VAR">答题结果</field><value name="VALUE"><block type="text_join" id="18Lnl{8*cs=(}8mRi#2w"><value name="A"><shadow type="text" id="(g_60@^N(lN[e2y?l,E."><field name="TEXT">Hello</field></shadow><block type="text_replace" id="H$U_~(9Pc..G49MsmJyA"><value name="VAR"><shadow type="text" id="I[mfzNlIFg7}_=(3!nKq"><field name="TEXT">Hello,mixly</field></shadow><block type="variables_get" id="y,~4d}?^7F]B4.0y1yA,"><field name="VAR">答题结果</field></block></value><value name="STR1"><shadow type="text" id="iwO6kGZ7EG}j/YY9K9CC"><field name="TEXT">C</field></shadow></value><value name="STR2"><shadow type="text" id="h7B|k)w|OlcU!:t/Q~k-"><field name="TEXT"></field></shadow></value></block></value><value name="B"><shadow type="text" id=";7E}A}@yK4;[Vz}{8}87"><field name="TEXT">C</field></shadow></value></block></value></block></statement><value name="IF3"><block type="sensor_mixgo_button_was_pressed" id="pmM}+CDNucQtZ$96!7[+"><value name="btn"><shadow type="pins_button" id="+7DjiFWBW!9]1nr!Ru!0"><field name="PIN">A4key</field></shadow></value></block></value><statement name="DO3"><block type="variables_set" id="Bm{*JY_RC/Rn5k@cj1Nj"><field name="VAR">答题结果</field><value name="VALUE"><block type="text_join" id="xLElvV|}oZUp44d}7fyN"><value name="A"><shadow type="text" id="v;Wp+950|,{Zus-_C`g:"><field name="TEXT">Hello</field></shadow><block type="text_replace" id="A0$hP~R_YS;f;dZwgF}:"><value name="VAR"><shadow type="text" id="P}umC`qidmu1kTV#q|.3"><field name="TEXT">Hello,mixly</field></shadow><block type="variables_get" id="`qoxEnn$;]mEjMSpC$H8"><field name="VAR">答题结果</field></block></value><value name="STR1"><shadow type="text" id="I#uTxF+3Yk_2z1{ni8rE"><field name="TEXT">D</field></shadow></value><value name="STR2"><shadow type="text" id="k8l}^QJdNRsM!BB(7]@+"><field name="TEXT"></field></shadow></value></block></value><value name="B"><shadow type="text" id="iy3)bb]iqwsyT{gd9J,J"><field name="TEXT">D</field></shadow></value></block></value></block></statement><next><block type="controls_if" id="Cy#?j!989B)j)0Uw~[(c"><value name="IF0"><block type="logic_compare" id="ZkN]+e^kv|cc_ki.^iHD"><field name="OP">NEQ</field><value name="A"><block type="variables_get" id="d^x-Il8VvQ9(y?eOguLI"><field name="VAR">答题结果</field></block></value><value name="B"><block type="text" id="-i/ro+eUZdSMF?=3Z)qR"><field name="TEXT">==</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="EG:r5}$fN]6qD{R^zzkr"><field name="VAR">答题结果</field><value name="VALUE"><block type="text_replace" id="Z?k5.mDcakeg9^gl4axl"><value name="VAR"><shadow type="text" id="GU2tkA:@@s(r@2Ank9OM"><field name="TEXT">Hello,mixly</field></shadow><block type="variables_get" id="]K^IxDdn?qJB..[[W,Am"><field name="VAR">答题结果</field></block></value><value name="STR1"><shadow type="text" id="Lw:pft;M9O{J)jO9q7og"><field name="TEXT">==</field></shadow></value><value name="STR2"><shadow type="text" id="T_H(cgs~LIz^g$]Xw:~i"><field name="TEXT"></field></shadow></value></block></value><next><block type="display_show_image_or_string_delay" id="WULFLQHiPMl);,3pGktu"><field name="center">True</field><value name="data"><shadow type="text" id="_8H$(kua[?Py!DXL-Fnt"><field name="TEXT">发送成功</field></shadow><block type="variables_get" id="{N^xL{}X;4T93(wFc9!J"><field name="VAR">答题结果</field></block></value><value name="space"><shadow type="math_number" id="g`RF3}zgjiKMP$}d4l(R"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="Z.76|0rC=g7}Y3|;4r$y"><field name="BOOL">TRUE</field></shadow></value><next><block type="controls_if" id="WT`x4FGq{yg7!N.(nCH!"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="rvt^^7$9sED*g7;98=1u"><value name="btn"><shadow type="pins_button" id="GKW+Ox-}+vmi]r+`}KYF"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="IOT_MIXIO_PUBLISH" id="D@!2~oe_kz$}0HXy|zp."><value name="TOPIC"><shadow type="text" id="pQ^4UD=o$Bv7u^_C@Sve"><field name="TEXT">选项</field></shadow></value><value name="MSG"><shadow type="text" id="Ar/oeIQ^z6_LKk8x.oX$"><field name="TEXT">A</field></shadow><block type="variables_get" id="C~D!45Pd)J6BIVw]V+{1"><field name="VAR">答题结果</field></block></value><next><block type="display_show_image_or_string_delay" id="-GC2c*)V2qfm6/=F=di*"><field name="center">True</field><value name="data"><shadow type="text" id="0I.^$bRqQ[~YqB.`xWy;"><field name="TEXT">发送成功</field></shadow></value><value name="space"><shadow type="math_number" id="?yDqOZ)7-nECl7hDdL]D"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="sSq2[304Q6K~vkvEIlaT"><field name="BOOL">TRUE</field></shadow></value><next><block type="variables_set" id="NLL;XmWp1bbHvey.Q~L1"><field name="VAR">开始答题</field><value name="VALUE"><block type="logic_boolean" id="6-r^!?0,5$g|J*=De7t}"><field name="BOOL">FALSE</field></block></value><next><block type="esp32_onboard_music_pitch_with_time" id="p{1[eCHWf=J$r{N2.hJ("><value name="pitch"><shadow type="pins_tone_notes" id="n/mc?}SUrYi$*264{JOI"><field name="PIN">659</field></shadow></value><value name="time"><shadow type="math_number" id=",[kPlJ$S=x6Ab{{5pp+I"><field name="NUM">100</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement></block></next></block></statement><statement name="ELSE"><block type="display_show_image_or_string_delay" id="j^CV]l.YVInG0)}6L^!z"><field name="center">True</field><value name="data"><shadow type="text" id="_8H$(kua[?Py!DXL-Fnt"><field name="TEXT">发送成功</field></shadow><block type="variables_get" id="`SIw#./(AqMY^u_D.(Gj"><field name="VAR">答题结果</field></block></value><value name="space"><shadow type="math_number" id="foIITHaW_pp-otUOL3dI"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="s-AZB5Zmg[oXUH_3(vN2"><field name="BOOL">TRUE</field></shadow></value></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="3[~p0OwJTEQdD5@:1Z)H" x="-1360" y="-621"><mutation><arg name="client" varid="x@Yfw8DrgkM3CEl{odMY"></arg><arg name="topic" varid="Q.[d]Bc~)FuhqVb/l{Uh"></arg><arg name="msg" varid="0.A^[Eto)4wE7Tef?SZQ"></arg></mutation><field name="NAME">method</field><statement name="STACK"><block type="variables_global" id=";7=kVYG1,:Rp8#M+SazB"><value name="VAR"><block type="variables_get" id=".t`W2NLjhn:bs4;Lt#4v"><field name="VAR">开始答题</field></block></value><next><block type="variables_global" id="o6gwOJ21#q#TLH~ohqB4"><value name="VAR"><block type="variables_get" id="vY(YNImBk!yE=HTz/0@d"><field name="VAR">答题结果</field></block></value><next><block type="controls_if" id="P`nUtKhs3A.emWO+^hv?"><value name="IF0"><block type="logic_compare" id="wI96L)FP7v,1Fw*sA(^A"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="MaU^{H?Z@~4C0.~U{=8P"><field name="VAR">msg</field></block></value><value name="B"><block type="text" id="DH3Fzh^sDXw88{o`l`9i"><field name="TEXT">1</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="1*7rW@W~-po_uBWEaWvt"><field name="VAR">开始答题</field><value name="VALUE"><block type="logic_boolean" id="-^G2{f5Uu(UjXEJ,UIX~"><field name="BOOL">TRUE</field></block></value><next><block type="display_show_image_or_string_delay" id="O_Qw4o}QT#nt-2L^BI.m"><field name="center">True</field><value name="data"><shadow type="text" id="yYtxOS0-g=t$@m.#|yVq"><field name="TEXT">开始答题</field></shadow></value><value name="space"><shadow type="math_number" id="vGd3!XwR6vD_#SaTdAHk"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="chSbkBAE48W(Ce0*eke*"><field name="BOOL">TRUE</field></shadow></value><next><block type="variables_set" id="fDw`n16KKS)VZCFkI}cj"><field name="VAR">答题结果</field><value name="VALUE"><block type="text" id="y}C{_mKI3SrL?;;(vg~K"><field name="TEXT">==</field></block></value></block></next></block></next></block></statement></block></next></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1peGlvdAppbXBvcnQgbWFjaGluZQppbXBvcnQgdXJlcXVlc3RzCmZyb20gdWJpbmFzY2lpIGltcG9ydCBoZXhsaWZ5CmZyb20gbWl4cHkgaW1wb3J0IGFuYWx5c2Vfc2hhcmVrZXkKaW1wb3J0IG1peGdvX3NhbnQKZnJvbSBtaXhnb19zYW50IGltcG9ydCBvbmJvYXJkX3RmdApmcm9tIG1peGdvX3NhbnQgaW1wb3J0IG9uYm9hcmRfbXVzaWMKCmRlZiBtZXRob2QoY2xpZW50LCB0b3BpYywgbXNnKToKICAgIGdsb2JhbCDlvIDlp4vnrZTpopgKICAgIGdsb2JhbCDnrZTpopjnu5PmnpwKICAgIGlmIG1zZyA9PSAnMSc6CiAgICAgICAg5byA5aeL562U6aKYID0gVHJ1ZQogICAgICAgIG9uYm9hcmRfdGZ0LnNob3dzKCflvIDlp4vnrZTpopgnLCBzcGFjZT0wLCBjZW50ZXI9VHJ1ZSxzeW5jPVRydWUpCiAgICAgICAg562U6aKY57uT5p6cID0gJz09JwoKCuW8gOWni+etlOmimCA9IEZhbHNlCuetlOmimOe7k+aenCA9ICc9PScKbWl4aW90LndsYW5fY29ubmVjdCgnZnVodWEzJywgJzEyMzQ1Njc4JykKc2sgPSBhbmFseXNlX3NoYXJla2V5KCdodHRwOi8vbWl4aW8ubWl4bHkuY24vbWl4aW8tcGhwL3NoYXJla2V5LnBocD9zaz0wNGYyOGYnKQpNUVRUX1VTUl9QUkogPSBza1swXSsnLycrc2tbMV0rJy8nCm1xdHRfY2xpZW50ID0gbWl4aW90LmluaXRfTVFUVF9jbGllbnQoJ21peGlvLm1peGx5LmNuJywgc2tbMF0sIHNrWzJdLCBNUVRUX1VTUl9QUkopCm1xdHRfY2xpZW50LnNldF9jYWxsYmFjaygn5byA5aeL562U6aKYJyxtZXRob2QsIE1RVFRfVVNSX1BSSikKbXF0dF9jbGllbnQuc3Vic2NyaWJlKE1RVFRfVVNSX1BSSiArICflvIDlp4vnrZTpopgnKQp3aGlsZSBUcnVlOgogICAgbXF0dF9jbGllbnQuY2hlY2tfbXNnKCkKICAgIGlmIOW8gOWni+etlOmimDoKICAgICAgICBpZiBtaXhnb19zYW50LkExa2V5Lndhc19wcmVzc2VkKCk6CiAgICAgICAgICAgIOetlOmimOe7k+aenCA9IOetlOmimOe7k+aenC5yZXBsYWNlKCdBJywnJykgKyAnQScKICAgICAgICBlbGlmIG1peGdvX3NhbnQuQTJrZXkud2FzX3ByZXNzZWQoKToKICAgICAgICAgICAg562U6aKY57uT5p6cID0g562U6aKY57uT5p6cLnJlcGxhY2UoJ0InLCcnKSArICdCJwogICAgICAgIGVsaWYgbWl4Z29fc2FudC5BM2tleS53YXNfcHJlc3NlZCgpOgogICAgICAgICAgICDnrZTpopjnu5PmnpwgPSDnrZTpopjnu5PmnpwucmVwbGFjZSgnQycsJycpICsgJ0MnCiAgICAgICAgZWxpZiBtaXhnb19zYW50LkE0a2V5Lndhc19wcmVzc2VkKCk6CiAgICAgICAgICAgIOetlOmimOe7k+aenCA9IOetlOmimOe7k+aenC5yZXBsYWNlKCdEJywnJykgKyAnRCcKICAgICAgICBpZiDnrZTpopjnu5PmnpwgIT0gJz09JzoKICAgICAgICAgICAg562U6aKY57uT5p6cID0g562U6aKY57uT5p6cLnJlcGxhY2UoJz09JywnJykKICAgICAgICAgICAgb25ib2FyZF90ZnQuc2hvd3Mo562U6aKY57uT5p6cLCBzcGFjZT0wLCBjZW50ZXI9VHJ1ZSxzeW5jPVRydWUpCiAgICAgICAgICAgIGlmIG1peGdvX3NhbnQuQjFrZXkud2FzX3ByZXNzZWQoKToKICAgICAgICAgICAgICAgIG1xdHRfY2xpZW50LnB1Ymxpc2goTVFUVF9VU1JfUFJKICsgJ+mAiemhuScsIOetlOmimOe7k+aenCkKICAgICAgICAgICAgICAgIG9uYm9hcmRfdGZ0LnNob3dzKCflj5HpgIHmiJDlip8nLCBzcGFjZT0wLCBjZW50ZXI9VHJ1ZSxzeW5jPVRydWUpCiAgICAgICAgICAgICAgICDlvIDlp4vnrZTpopggPSBGYWxzZQogICAgICAgICAgICAgICAgb25ib2FyZF9tdXNpYy5waXRjaF90aW1lKDY1OSwgMTAwKQogICAgZWxzZToKICAgICAgICBvbmJvYXJkX3RmdC5zaG93cyjnrZTpopjnu5PmnpwsIHNwYWNlPTAsIGNlbnRlcj1UcnVlLHN5bmM9VHJ1ZSkK</code> |