1 line
13 KiB
XML
1 line
13 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控自强(SANT)" shown="block"><variables><variable id="^9Hon$sI^]RE=WL*DO`/">tim</variable></variables><block type="variables_set" id="iXvGdkqlZFzk`C$743)w" x="-5133" y="-1309"><field name="VAR">点亮01</field><value name="VALUE"><block type="logic_boolean" id="nBw8r0bc_hlK^@/D3Q-m"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="]evFyGOZ1!P]Drx^k|Dr"><field name="VAR">点亮23</field><value name="VALUE"><block type="logic_boolean" id="m1jCCAa|N}ahX{mft96N"><field name="BOOL">FALSE</field></block></value><next><block type="system_print" id="j#!5-](-iIXgV=c`IB(|"><value name="VAR"><shadow type="text" id="[0:UbqCq.kR(y[Vc#M;n"><field name="TEXT">Mixly</field></shadow><block type="sensor_sound" id="8-NLFp[xCM5p)ERJFW/F"></block></value><next><block type="set_system_timer" id="-Kc=~eTZ/pR8crJgHUFu"><field name="mode">PERIODIC</field><value name="VAR"><shadow type="variables_get" id="rEkaL4.,QMO39ugAV3ZQ"><field name="VAR">tim</field></shadow></value><value name="PIN"><shadow type="timer_id_pin" id="R:N|A?{5og:Xbr};lKmr"><field name="PIN">0</field></shadow></value><value name="period"><shadow type="math_number" id="h53I0tU}$R14M-7io]uP"><field name="NUM">100</field></shadow></value><value name="callback"><shadow type="factory_block_return" id="5:WK2=CJq(ccFU653d)i"><field name="VALUE">tim_callback</field></shadow></value><next><block type="controls_whileUntil" id="lz2)Y1`l,@PJP8:f~(H^"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="wh[pjYv;b*mD7_ZZa_m2"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="Gk_luoaQ35`8Igf2OAjm"><value name="IF0"><block type="logic_compare" id="Gkk/?|+PFcNv^*y;PxGp"><field name="OP">GT</field><value name="A"><block type="sensor_mixgo_nova_LTR308" id="A,(?T^RT5C*GBB[{.x*~"><field name="direction">l</field></block></value><value name="B"><block type="math_number" id="b{+lh{:8Ci{$wS;4^lCR"><field name="NUM">1000</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="3mlC[_*5L|F8N!mM$A[!"><field name="VAR">点亮01</field><value name="VALUE"><block type="logic_boolean" id="/D}bjEM]6PT#woL0p:[)"><field name="BOOL">TRUE</field></block></value></block></statement><next><block type="controls_if" id="N!8a:r;/+Q5,l)K8:@R}"><value name="IF0"><block type="logic_compare" id="]n,T4f1Skh]k$~rJ6j!a"><field name="OP">GT</field><value name="A"><block type="sensor_mixgo_nova_LTR308" id="vU?5jJr+(4/==lBk1A1K"><field name="direction">r</field></block></value><value name="B"><block type="math_number" id="Nwc8?3_vxB;WyiWsU/Ab"><field name="NUM">1000</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="QTVLpH,qxN$WN$VrL|)w"><field name="VAR">点亮23</field><value name="VALUE"><block type="logic_boolean" id="[m_U^S40,8)Oz#a@a![B"><field name="BOOL">TRUE</field></block></value></block></statement><next><block type="controls_if" id=",;nEHcJW3U~?Z2m#`drB"><value name="IF0"><block type="logic_operation" id="!E{]v4(wgcOdOXU={r0#"><field name="OP">AND</field><value name="A"><block type="variables_get" id="PHpH6uE+cogZ_a*_T~wp"><field name="VAR">点亮01</field></block></value><value name="B"><block type="variables_get" id="K^M5^2t.+qtU*gx!tE0P"><field name="VAR">点亮23</field></block></value></block></value><statement name="DO0"><block type="controls_try_finally" id="H[RX5Jdk1V8ziD5cwAJ]"><mutation elseif="1"></mutation><statement name="try"><block type="esp32_onboard_music_play_list" id="=Kb9yIWngiyoYr-@LId`"><value name="LIST"><shadow type="pins_playlist" id="*WEiU$6Dvx6^sv|q=Dq|"><field name="PIN">onboard_music.BIRTHDAY</field></shadow></value></block></statement><value name="IF1"><shadow type="factory_block_return" id="JG?^mGsZt*Htza:aKtWL"><field name="VALUE">Exception as e</field></shadow></value><statement name="DO1"><block type="system_print" id=")@TTF+7b9+G=15a,?7tW"><value name="VAR"><block type="variables_get" id="n^gt^]1i65?[iMuP5bF*"><field name="VAR">e</field></block></value></block></statement></block></statement></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="4K1df;U*QPzkzgXLgIpO" x="-4314" y="-1346"><mutation><arg name="tim" varid="^9Hon$sI^]RE=WL*DO`/"></arg></mutation><field name="NAME">tim_callback</field><statement name="STACK"><block type="variables_global" id="4kh{nWz#48RQ3mmcC]Vh"><value name="VAR"><block type="variables_get" id="MQgfGA.FKjK;G-ok*IlS"><field name="VAR">点亮23</field></block></value><next><block type="variables_global" id="G7+=,y^Kyii#Y6=)qCD["><value name="VAR"><block type="variables_get" id="wsol|+)84($Ye(XEJpt{"><field name="VAR">点亮01</field></block></value><next><block type="controls_if" id="v4Gtv9UIRJ}~CD8HgMf}"><value name="IF0"><block type="logic_compare" id="FLH1[C1G{2OW4pIw`Huz"><field name="OP">GT</field><value name="A"><block type="sensor_sound" id="rH[QG|!v6Q2)$j~0J;-S"></block></value><value name="B"><block type="math_number" id="D]bDkfKOGMu(R)c,:nCw"><field name="NUM">2000</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="8GXT=qRwNX*G7ZcEm*y{"><field name="VAR">点亮01</field><value name="VALUE"><block type="logic_boolean" id="?x^eaw??@M:IH[jsnnuA"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="t`,aJV,D=h9qY{ZQS|Aw"><field name="VAR">点亮23</field><value name="VALUE"><block type="logic_boolean" id="S.Pipdle-4QM=O_ZUfWq"><field name="BOOL">FALSE</field></block></value><next><block type="esp32_onboard_music_stop" id="MTDizvek#|D|mKYX8SZ3"></block></next></block></next></block></statement><next><block type="actuator_onboard_neopixel_rgb_all" id=",/}i;ePE^`*yF+YKr+iv"><value name="RVALUE"><shadow type="math_number" id="$8.z`xW#+S6$@c~JaJ31"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="=0+X(G]9DTjMgQ9apGQ;"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="U;`w6QFJBpx]D*=PiB1G"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="9EeUsv8@@qCok70lP|7H"><next><block type="controls_if" id="4eNbo7Px!=+Mc.!?JZLW"><value name="IF0"><block type="variables_get" id="RA}x*CSx{8w}Ad?oRI#N"><field name="VAR">点亮01</field></block></value><statement name="DO0"><block type="variables_set" id="3H)oXSuc`Hur+srL,q]h"><field name="VAR">d</field><value name="VALUE"><block type="math_random" id="CZ8+6]){Q;+Of8-s?b+s"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="`$v9Tz]R5K`s.Gfl)3lB"><field name="NUM">5</field></shadow></value><value name="TO"><shadow type="math_number" id="pphy!BmoY)|Z5JovILD~"><field name="NUM">10</field></shadow></value></block></value><next><block type="actuator_onboard_neopixel_rgb" id=":w#Y;2f0CyY;y+FUCB?g"><value name="_LED_"><shadow type="math_number" id="$afqK{MZ-s71llkG0:N^"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="q^iq1M]g;cdur@pFJ!Lu"><field name="NUM">30</field></shadow><block type="variables_get" id="SFr)5@q^s:77?!jIxWJ+"><field name="VAR">d</field></block></value><value name="GVALUE"><shadow type="math_number" id="94P)_?.$+;[t_dSIP11S"><field name="NUM">30</field></shadow><block type="variables_get" id="}_3De/n3|Os[*sOG32!m"><field name="VAR">d</field></block></value><value name="BVALUE"><shadow type="math_number" id="ASlO#4?dKdIbWmTXh!t;"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="fW`b(`qKm3h?q+VKr[vT"><field name="VAR">d</field><value name="VALUE"><block type="math_random" id="?aKuFB:N.[]f-^DO0+]a"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="kNJ9Kz~aOK/;u:uQSGR$"><field name="NUM">5</field></shadow></value><value name="TO"><shadow type="math_number" id="Rj,3(;_WLj}W!FKb7MLg"><field name="NUM">10</field></shadow></value></block></value><next><block type="actuator_onboard_neopixel_rgb" id=".niPglSjsG/;qmJ*QRzR"><value name="_LED_"><shadow type="math_number" id=",}Pdsd{!92n;nARb9jJ^"><field name="NUM">1</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="ddzZP5|][(7_6iAoMETg"><field name="NUM">30</field></shadow><block type="variables_get" id="iTH|:CiU+z2/T?r5[R6T"><field name="VAR">d</field></block></value><value name="GVALUE"><shadow type="math_number" id="w?j5h~M9HBnCwLGszPCh"><field name="NUM">30</field></shadow><block type="variables_get" id="(Xq~+wRS2Ww^89!p5u~}"><field name="VAR">d</field></block></value><value name="BVALUE"><shadow type="math_number" id="4ez2$VjvV$nV*?;PWLIR"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="Co)2w/gE51};YxBwsZo{"></block></next></block></next></block></next></block></next></block></statement><next><block type="controls_if" id="KcdJrJsWl$zOKg~-,iBd"><value name="IF0"><block type="variables_get" id=":[fJvMH{O.,_)aZC7f#)"><field name="VAR">点亮23</field></block></value><statement name="DO0"><block type="variables_set" id="UozHJrvX}Gua-cOdD|!j"><field name="VAR">d</field><value name="VALUE"><block type="math_random" id="Xare[h0j/d;q9adwN9sE"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="?gJ@*q;_;(l_:XRDz|E("><field name="NUM">5</field></shadow></value><value name="TO"><shadow type="math_number" id="Y/HRSvn~}#6wmMZY5x#r"><field name="NUM">10</field></shadow></value></block></value><next><block type="actuator_onboard_neopixel_rgb" id="pcO6J#Y?0X]C,:f)R7/_"><value name="_LED_"><shadow type="math_number" id="oYtC0B(#!MKew{srF9ld"><field name="NUM">2</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="_yR:?K^-y6ag4{.WAY4["><field name="NUM">30</field></shadow><block type="variables_get" id="UPao}P[)h_$@j_cHJH:e"><field name="VAR">d</field></block></value><value name="GVALUE"><shadow type="math_number" id="4b!M$=2-,oi5e|t#?`ry"><field name="NUM">30</field></shadow><block type="variables_get" id="$BwC=jcpb{~3,KY4KC,j"><field name="VAR">d</field></block></value><value name="BVALUE"><shadow type="math_number" id="Kr;EvVDo6i.;WWiI44(s"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="(Jn{hDUSlYBF:)KUwB)3"><field name="VAR">d</field><value name="VALUE"><block type="math_random" id="XyMZ:zpbrtziyGtzzZFi"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="cWXiWl|,gdWV;eXrEdEX"><field name="NUM">5</field></shadow></value><value name="TO"><shadow type="math_number" id="blBQsdM4aJ$BxBgmp(6*"><field name="NUM">10</field></shadow></value></block></value><next><block type="actuator_onboard_neopixel_rgb" id="^axAq:M$Z-V*EM`CqKQ}"><value name="_LED_"><shadow type="math_number" id="}.R08cG-Q~I+aqL1!uvr"><field name="NUM">3</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="jl._Quzfx~bTvatil0+x"><field name="NUM">30</field></shadow><block type="variables_get" id="0fA}zP3LT63M4YuE`zBJ"><field name="VAR">d</field></block></value><value name="GVALUE"><shadow type="math_number" id="}jA;LZn]t]0/l$oiRmBv"><field name="NUM">30</field></shadow><block type="variables_get" id="xN7m.AtM9[;Hnv)ehL~}"><field name="VAR">d</field></block></value><value name="BVALUE"><shadow type="math_number" id="m:3q7|lQYcIA#jNoV.C!"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="Cw5uEdEfCsveMnLb}Cx+"></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml><config>{"BurnSpeed":{"key":"921600","label":"921600"}}</config><code>aW1wb3J0IG1hY2hpbmUKZnJvbSBtaXhnb19zYW50IGltcG9ydCBvbmJvYXJkX3NvdW5kCmZyb20gbWl4Z29fc2FudCBpbXBvcnQgb25ib2FyZF9hbHNfbApmcm9tIG1peGdvX3NhbnQgaW1wb3J0IG9uYm9hcmRfYWxzX3IKZnJvbSBtaXhnb19zYW50IGltcG9ydCBvbmJvYXJkX211c2ljCmZyb20gbWl4Z29fc2F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wMDA6CiAgICAgICAg54K55LquMDEgPSBUcnVlCiAgICBpZiBvbmJvYXJkX2Fsc19yLmFsc192aXMoKSA+IDEwMDA6CiAgICAgICAg54K55LquMjMgPSBUcnVlCiAgICBpZiDngrnkuq4wMSBhbmQg54K55LquMjM6CiAgICAgICAgdHJ5OgogICAgICAgICAgICBvbmJvYXJkX211c2ljLnBsYXkob25ib2FyZF9tdXNpYy5CSVJUSERBWSkKICAgICAgICBleGNlcHQgRXhjZXB0aW9uIGFzIGU6CiAgICAgICAgICAgIHByaW50KGUpCg==</code>MgZToKICAgICAgICAgICAgcHJpbnQoZSkK</code>=</code> |