Files
mixly3/boards/default/micropython_esp32s3/examples/spaL08kpMjzN/FC4Pel0yCDim.mix
2024-07-23 20:47:22 +08:00

1 line
5.4 KiB
XML

<xml version="Mixly 2.0 rc4" board="Python ESP32-S3@元控青春"><variables><variable id="d$Hz)_vvA0^=g9`rK.n2">data</variable></variables><block type="communicate_bluetooth_peripheral_init" id="K|O.B2DN2mz=[IW5KdM," x="-1213" y="-853"><value name="VAR"><shadow type="variables_get" id="SnDzc,)nH!]K;F,m)t}N"><field name="VAR">ble_x</field></shadow></value><value name="data"><shadow type="text" id="*1.$-|,0DTqT{HA4f.u["><field name="TEXT">Mixly_Slave</field></shadow></value><next><block type="communicate_bluetooth_recv" id="lcL@HyzhK*!#AN^6m.5="><value name="VAR"><shadow type="variables_get" id="B_ar6Uii00qVC4Lg9Z.K"><field name="VAR">ble_x</field></shadow></value><value name="METHOD"><shadow type="factory_block_return" id="*X{*uOghOD-0lpK6W=]]"><field name="VALUE">ble_method</field></shadow></value><next><block type="controls_whileUntil" id="wy._I#}S#|R3|KOcXZO*"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="@@]4=JEj;J}ixq2C]k0^"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="cKd)GI5spC1W~/VOaE{)"><mutation else="1"></mutation><value name="IF0"><block type="communicate_bluetooth_is_connected" id="yftx[;e(f.P_Z-1p_wF7"><value name="VAR"><shadow type="variables_get" id="N+3S2Z;s2/QO}Qb/AKnP"><field name="VAR">ble_x</field></shadow></value></block></value><statement name="DO0"><block type="actuator_onboard_neopixel_rgb_all" id="#vpj*1@*Yf(m0xx.Jt?("><value name="RVALUE"><shadow type="math_number" id="D-eY)Qn__UUPtr:1^H(_"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="./$*!:Z8z8-bpN+n1JU^"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="K;{=fSzY$WIbppim92.j"><field name="NUM">10</field></shadow></value><next><block type="controls_if" id="iD!v@vn04@In74V3$vlL"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="xHt;BEt4p_sJ4Bi({hvf"><value name="btn"><shadow type="pins_button" id="])YQ(B|$w9qb+G[(!(s}"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="communicate_bluetooth_send" id="78a5:RAc=B1[es]7m[@0"><value name="VAR"><shadow type="variables_get" id="v?o^;,9D*KQ/C^a?Fy,["><field name="VAR">ble_x</field></shadow></value><value name="data"><shadow type="text" id="j[B$*3paWQ1IsU9pei#d"><field name="TEXT">B1键</field></shadow></value></block></statement><next><block type="controls_if" id="J;:r{*r-i/Wj;Oi~CIm!"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="69.QsGF#}vMLB|c[}!jv"><value name="btn"><shadow type="pins_button" id="[4L.-[OBe8}^AU6Fd-/$"><field name="PIN">B2key</field></shadow></value></block></value><statement name="DO0"><block type="communicate_bluetooth_send" id="!6^X;FfbZ/#j,RW*9UGw"><value name="VAR"><shadow type="variables_get" id="br}e7_a7m}L14{g+R:ml"><field name="VAR">ble_x</field></shadow></value><value name="data"><shadow type="text" id="n/$weZ#])O(JoHH2gjXe"><field name="TEXT">B2键</field></shadow></value></block></statement></block></next></block></next></block></statement><statement name="ELSE"><block type="actuator_onboard_neopixel_rgb_all" id="UY(|COc$6qsXkv6(}c45"><value name="RVALUE"><shadow type="math_number" id="PrydJddTAP~EG{J!48lQ"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="^$!CIDV{K+@KQ1GlDGoC"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="Fpbr({5Fg5O,t@;.|Fc+"><field name="NUM">0</field></shadow></value></block></statement><next><block type="actuator_onboard_neopixel_write" id="1^N#f16gQ{@EST9=}dY*"></block></next></block></statement></block></next></block></next></block><block type="procedures_defnoreturn" id="LxZ0?5`iu,=$;7i)(Hcy" x="-1208" y="-319"><mutation><arg name="data" varid="d$Hz)_vvA0^=g9`rK.n2"></arg></mutation><field name="NAME">ble_method</field><statement name="STACK"><block type="system_print" id="|UXoI7xb/]=J#yPhfqXg"><value name="VAR"><shadow type="text" id="V?!QSb0xjm,IQ.e+0qSX"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="#FLK+lF#Q*C{tk?rvA0R"><field name="VAR">data</field></block></value><next><block type="display_show_image_or_string_delay" id="b)]s8RVuXuO9~vB=!,+{"><field name="center">True</field><value name="data"><shadow type="text" id="/3UZI^MW@*/?Dz0l[AOr"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="bL6im2?A~c(VJ_yimVv|"><field name="VAR">data</field></block></value><value name="space"><shadow type="math_number" id="c:+?6s85KB(S=ASVh]Yc"><field name="NUM">0</field></shadow></value></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IGJsZV9wZXJpcGhlcmFsCmZyb20gbWl4Z29fbm92YSBpbXBvcnQgb25ib2FyZF9yZ2IKaW1wb3J0IG1peGdvX25vdmEKaW1wb3J0IG1hY2hpbmUKZnJvbSBtaXhnb19ub3ZhIGltcG9ydCBvbmJvYXJkX3RmdAoKZGVmIGJsZV9tZXRob2QoZGF0YSk6CiAgICBwcmludChkYXRhKQogICAgb25ib2FyZF90ZnQuc2hvd3MoZGF0YSxzcGFjZSA9IDAsY2VudGVyID0gVHJ1ZSkKCgoKYmxlX3ggPSBibGVfcGVyaXBoZXJhbC5CTEVTaW1wbGVQZXJpcGhlcmFsKCdNaXhseV9TbGF2ZScpCmJsZV94LnJlY3YoYmxlX21ldGhvZCkKd2hpbGUgVHJ1ZToKICAgIGlmIGJsZV94LmlzX2Nvbm5lY3RlZCgpOgogICAgICAgIG9uYm9hcmRfcmdiLmZpbGwoKDAsIDAsIDEwKSkKICAgICAgICBpZiBtaXhnb19ub3ZhLkIxa2V5Lndhc19wcmVzc2VkKCk6CiAgICAgICAgICAgIGJsZV94LnNlbmQoJ0Ix6ZSuJykKICAgICAgICBpZiBtaXhnb19ub3ZhLkIya2V5Lndhc19wcmVzc2VkKCk6CiAgICAgICAgICAgIGJsZV94LnNlbmQoJ0Iy6ZSuJykKICAgIGVsc2U6CiAgICAgICAgb25ib2FyZF9yZ2IuZmlsbCgoMCwgMCwgMCkpCiAgICBvbmJvYXJkX3JnYi53cml0ZSgpCg==</code>