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="-W:2U3sXV(o?eR_f?Ey?" x="-5057" y="-1346"><field name="VAR">点亮01</field><value name="VALUE"><block type="logic_boolean" id="@@?l^dS$d)~PX56lJQt`"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="WUc*NkKDjFX$WszBzMz5"><field name="VAR">点亮23</field><value name="VALUE"><block type="logic_boolean" id="E9[F://jr`gI5I}.KvCg"><field name="BOOL">FALSE</field></block></value><next><block type="set_system_timer" id="1axD983s4BE1U)?Ph7bx"><field name="mode">PERIODIC</field><value name="VAR"><shadow type="variables_get" id="p2QP17!di1m!47rQGOk~"><field name="VAR">tim</field></shadow></value><value name="PIN"><shadow type="timer_id_pin" id="{|?z^rv-.Jq~DmowTXs:"><field name="PIN">0</field></shadow></value><value name="period"><shadow type="math_number" id="{(aJxe|RL_$!aqkry6qM"><field name="NUM">100</field></shadow></value><value name="callback"><shadow type="factory_block_return" id="Ygr/zactSvy[`7JfiR8$"><field name="VALUE">tim_callback</field></shadow></value><next><block type="controls_whileUntil" id="Vl,/**FC|e4t?F19C$q3"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="fw]MOd_0g$.544U;A8DF"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="~pgUsczZ+iSyd-9A:9uD"><value name="IF0"><block type="logic_compare" id="Z!fpT,u0-V/EQ.muI@;k"><field name="OP">GT</field><value name="A"><block type="sensor_mixgo_nova_LTR308" id="6.=ZSDNuqEcJT$g/Uy~a"><field name="direction">l</field></block></value><value name="B"><block type="math_number" id="R@,TWffVVgYD75~BWxr]"><field name="NUM">1000</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="I9S9_mjYl#DrI,/A:0iG"><field name="VAR">点亮01</field><value name="VALUE"><block type="logic_boolean" id="CX`XzZxcAQA0`yv{i80u"><field name="BOOL">TRUE</field></block></value></block></statement><next><block type="controls_if" id="c(A|]sNGMc{;gXx4@DRL"><value name="IF0"><block type="logic_compare" id="rCO,)Y`irlxBRLjEP{.."><field name="OP">GT</field><value name="A"><block type="sensor_mixgo_nova_LTR308" id="bo7)#r*O(S-Bim|qk6#7"><field name="direction">r</field></block></value><value name="B"><block type="math_number" id="C`dG)xfB|eC99-#cLJMg"><field name="NUM">1000</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="]4Z9/C=q}*X;ehB$*(=z"><field name="VAR">点亮23</field><value name="VALUE"><block type="logic_boolean" id="$gA@nPz6ejWc@DhYKwkt"><field name="BOOL">TRUE</field></block></value></block></statement><next><block type="controls_if" id="}li]3/G_T(_3|-Qvb{o,"><value name="IF0"><block type="logic_operation" id="503{3mrn.cRai*syI~5-"><field name="OP">AND</field><value name="A"><block type="variables_get" id="_Ncu_`WG7K2=j~*17t8("><field name="VAR">点亮01</field></block></value><value name="B"><block type="variables_get" id="BbUN)JKb`j@[Lzlwoqc="><field name="VAR">点亮23</field></block></value></block></value><statement name="DO0"><block type="esp32_onboard_music_play_list" id="+zlY$nt?z(p!IJZMi;Ao"><value name="LIST"><shadow type="pins_playlist" id="hqkBU/DvB*I(?)GLQY#9"><field name="PIN">onboard_music.BIRTHDAY</field></shadow></value></block></statement></block></next></block></next></block></statement></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="_`Y!`hVfu~LKHCPVf`~H" 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="WWH42k~;Ki#so$3xqYRr"><value name="VAR"><block type="variables_get" id="2ySNMa@uFd2S0}XXH3sX"><field name="VAR">点亮23</field></block></value><next><block type="variables_global" id="Rh2hJ=FfAwYM}Dq-S^kA"><value name="VAR"><block type="variables_get" id="?D1w!`v`C7_eipV}R_?x"><field name="VAR">点亮01</field></block></value><next><block type="system_print" id="BAT5wAp#Xav^bAX*g|Yv"><value name="VAR"><shadow type="text" id="gwTQ93A@++QWJd|yMS#V"><field name="TEXT">Mixly</field></shadow><block type="sensor_sound" id="0#)zdexUL!#);[Nsg|^C"></block></value><next><block type="controls_if" id="wK07=dJ};Cqf1h|;7U]P"><value name="IF0"><block type="logic_compare" id="b0SCkC.{sJ**gB)^O_CJ"><field name="OP">GT</field><value name="A"><block type="sensor_sound" id="obFZxuGaZ[HgXm9cmGDB"></block></value><value name="B"><block type="math_number" id="9he/C[995`E(f$XA-~)4"><field name="NUM">2000</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="vnsa^Z2la$J=ni.k:-]j"><field name="VAR">点亮01</field><value name="VALUE"><block type="logic_boolean" id=")Q??EVZe{=J4O9xFAT}x"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="ogTLn~$[s~u$8I_B2n0L"><field name="VAR">点亮23</field><value name="VALUE"><block type="logic_boolean" id="m@WIp_x$4B]|=1S8Mz[_"><field name="BOOL">FALSE</field></block></value></block></next></block></statement><next><block type="actuator_onboard_neopixel_rgb_all" id="h1P^$[8lm7-9vPQ.8HDm"><value name="RVALUE"><shadow type="math_number" id="iGoM{UyKnv[Zm]OA46~1"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="Y#}RQf.NMw~X?:P.PRgj"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="0-uv6^[FA^Cu2!EXW=`c"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="6j)W@IlEoOilUv}*D+@t"><next><block type="controls_if" id="t[W|n!+i}l?0q1hV:^=e"><value name="IF0"><block type="variables_get" id="NF6@8::CyHGE-2Q]f)7P"><field name="VAR">点亮01</field></block></value><statement name="DO0"><block type="variables_set" id="t_$OY}2tkSShiU_.;XNk"><field name="VAR">d</field><value name="VALUE"><block type="math_random" id="hxVR]/,2nYx$IyZbUzAi"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="bj5Fi2^kxn-,J`RMoQ3U"><field name="NUM">5</field></shadow></value><value name="TO"><shadow type="math_number" id="G(kXCyXf^Nx+e=|)XpCP"><field name="NUM">10</field></shadow></value></block></value><next><block type="actuator_onboard_neopixel_rgb" id="vI;6MgOhx:lseGlg.:_:"><value name="_LED_"><shadow type="math_number" id="sz(`oL.WVwdbjn~4ojZ6"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="W(/{f_MMi82JN[GczUBZ"><field name="NUM">30</field></shadow><block type="variables_get" id="[0LZ2L7eI7hG|z,?Wdj6"><field name="VAR">d</field></block></value><value name="GVALUE"><shadow type="math_number" id="n/3Eib_vMU6Dl`V?CqU["><field name="NUM">30</field></shadow><block type="variables_get" id="0qh1#2mU,v@!(wW.4b[U"><field name="VAR">d</field></block></value><value name="BVALUE"><shadow type="math_number" id="KOeX*Yy]hjVs0}-gCbk/"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="E3S;;3waT9S(9fvW;M2y"><field name="VAR">d</field><value name="VALUE"><block type="math_random" id="7$WGeK|H_IVJS9$GtE~H"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="0MnPc6$l8WFLAw$XW8)S"><field name="NUM">5</field></shadow></value><value name="TO"><shadow type="math_number" id="^1S`H$#c1V2{y4904C3f"><field name="NUM">10</field></shadow></value></block></value><next><block type="actuator_onboard_neopixel_rgb" id="=|.!@E_Dfqx5^ffaTKRA"><value name="_LED_"><shadow type="math_number" id="[=6eM`wY-T+VT-YQ8PY5"><field name="NUM">1</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="mok7hk}KX4.P`$Eet7JA"><field name="NUM">30</field></shadow><block type="variables_get" id="$!UbffZo5]ob(5)gMRG@"><field name="VAR">d</field></block></value><value name="GVALUE"><shadow type="math_number" id="mg6j@G:rKJO#B0(gk8~N"><field name="NUM">30</field></shadow><block type="variables_get" id="1lgNI:+edOo~(O`4Lw-L"><field name="VAR">d</field></block></value><value name="BVALUE"><shadow type="math_number" id="^Q`fRZ!=r3msTv=Ze_3s"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="q.t94nfGh-#lmNl}{G{7"></block></next></block></next></block></next></block></next></block></statement><next><block type="controls_if" id="k7)uFRqG:T!0u=576B(S"><value name="IF0"><block type="variables_get" id="6;OT9XvB^|SFU]o|2N9F"><field name="VAR">点亮23</field></block></value><statement name="DO0"><block type="variables_set" id="qNH1H:p(msf6^q]0jno,"><field name="VAR">d</field><value name="VALUE"><block type="math_random" id="}wR0e)M915oT1cF5j+QU"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="I?34`K?uc2AHW|1aUk|i"><field name="NUM">5</field></shadow></value><value name="TO"><shadow type="math_number" id="$hdoZS/gkw{,b@sP5+uB"><field name="NUM">10</field></shadow></value></block></value><next><block type="actuator_onboard_neopixel_rgb" id="{X9F#Iev@0MY5(Chg_Go"><value name="_LED_"><shadow type="math_number" id="*B;o#nQ5XHbBt))nG:`u"><field name="NUM">2</field></shadow></value><value name="RVALUE"><shadow type="math_number" id=",Yd_a:r$x+_!Za9deohT"><field name="NUM">30</field></shadow><block type="variables_get" id="i1ubjg=m0IELqIpuWyeB"><field name="VAR">d</field></block></value><value name="GVALUE"><shadow type="math_number" id="r0BoEDw0E]9,gj^eW/f)"><field name="NUM">30</field></shadow><block type="variables_get" id="6XErWfpu;;ST8o7UUr8M"><field name="VAR">d</field></block></value><value name="BVALUE"><shadow type="math_number" id="1hEJ~Ok^NdQX92OJWR!B"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="xW5Fx`85+UO_5G[t40(4"><field name="VAR">d</field><value name="VALUE"><block type="math_random" id="|5H`OB*YMsg8vK$3mTDE"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="tt@Ug3=!;H/YX19LYBIp"><field name="NUM">5</field></shadow></value><value name="TO"><shadow type="math_number" id="7xWVBuqO[e${gb^b(`#t"><field name="NUM">10</field></shadow></value></block></value><next><block type="actuator_onboard_neopixel_rgb" id="}TnV=E#=mh{^@3V;hP49"><value name="_LED_"><shadow type="math_number" id="Un5wh)E`[bB3Jj$U=R33"><field name="NUM">3</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="ShOY!G+h2C}qYdSO:KYa"><field name="NUM">30</field></shadow><block type="variables_get" id="A4hW3yC3e[,)JW0@,_{D"><field name="VAR">d</field></block></value><value name="GVALUE"><shadow type="math_number" id="Y5zR]0Acdwk0(|NuZFt6"><field name="NUM">30</field></shadow><block type="variables_get" id="9sgV7s5(T!Z6WDIl`oHq"><field name="VAR">d</field></block></value><value name="BVALUE"><shadow type="math_number" id=";zAP8d87UOXKaiI:feFV"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="GQM-HcE+dolw{zFoGHAF"></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml><config>{"BurnSpeed":{"key":"921600","label":"921600"}}</config><code>aW1wb3J0IG1hY2hpbmUKZnJvbSBtaXhnb19zYW50IGltcG9ydCBvbmJvYXJkX2Fsc19sCmZyb20gbWl4Z29fc2FudCBpbXBvcnQgb25ib2FyZF9hbHNfcgpmcm9tIG1peGdvX3NhbnQgaW1wb3J0IG9uYm9hcmRfbXVzaWMKZnJvbSBtaXhnb19zYW50IGltcG9ydCBvbmJvYXJkX3NvdW5kCmZyb20gbWl4Z29fc2FudCBpbXBvcnQgb25ib2FyZF9yZ2IKaW1wb3J0IHJhbmRvbQoKCmRlZiB0aW1fY2FsbGJhY2sodGltKToKICAgIGdsb2JhbCDngrnkuq4yMwogICAgZ2xvYmFsIOeCueS6rjAxCiAgICBwcmludChvbmJvYXJkX3NvdW5kLnJlYWQoKSkKICAgIGlmIG9uYm9hcmRfc291bmQucmVhZCgpID4gMjAwMDoKICAgICAgICDngrnkuq4wMSA9IEZhbHNlCiAgICAgICAg54K55LquMjMgPSBGYWxzZQogICAgb25ib2FyZF9yZ2IuZml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