1 line
5.8 KiB
XML
1 line
5.8 KiB
XML
<xml version="Mixly 2.0 rc4" board="Python ESP32-S3@元控青春"><variables><variable id="*5WT[`,Lbe5En3jd}uUk">data</variable></variables><block type="communicate_bluetooth_central_init" id="3F7-qh7bp{rX^4JX3tLt" x="-871" y="-463"><value name="VAR"><shadow type="variables_get" id=":9JQdh5du*:FPs[Ey+z("><field name="VAR">ble_c</field></shadow></value><next><block type="communicate_bluetooth_recv" id="h?8j#OPDYmyEkvpNxmD`"><value name="VAR"><shadow type="variables_get" id="{3oDyZckEu]H:Bdm)$O!"><field name="VAR">ble_c</field></shadow></value><value name="METHOD"><shadow type="factory_block_return" id="0LPOs[}PxN!U;v.:W,=h"><field name="VALUE">ble_method</field></shadow></value><next><block type="controls_whileUntil" id="77:_B3b?8IcL_N^ZU6ms"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="UMvr$+vm)0ChT[KPbEa#"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="v/-L1},T-fh_JILbDA)S"><mutation else="1"></mutation><value name="IF0"><block type="communicate_bluetooth_is_connected" id="n,gw{Z(L)#yO2l)s@6=4"><value name="VAR"><shadow type="variables_get" id="(NgXNpC8dU}72@R]8IKw"><field name="VAR">ble_c</field></shadow></value></block></value><statement name="DO0"><block type="actuator_onboard_neopixel_rgb_all" id="A+cGVrv!oec!PZC_SgFN"><value name="RVALUE"><shadow type="math_number" id="I?dt26u3s$[4/w3YFtTB"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="a{CJZ*D]oo]Zo[Cz~wq:"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="WZtc$?n}/_`-U[EZ-;6:"><field name="NUM">10</field></shadow></value><next><block type="controls_if" id="}=90*4U=ko3Q0O;#UmbP"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="bfbWmt8$5Q~HZ@Ulf^@="><value name="btn"><shadow type="pins_button" id="wxdWD8l9h8:17In{?@ka"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="communicate_bluetooth_send" id="@|-ji`gBg|au(t!lF2!p"><value name="VAR"><shadow type="variables_get" id=":ws=i7aHau,@|P22$9Ek"><field name="VAR">ble_c</field></shadow></value><value name="data"><shadow type="text" id="R[3l,4bKMJ2SN:=!=Fo."><field name="TEXT">数据</field></shadow><block type="number_to_text" id="+?XSy#)3Fo2!YB[|64V#"><value name="VAR"><shadow type="variables_get" id="L-qw*rwEi]1cNQ4uje;l"><field name="VAR">x</field></shadow><block type="math_random" id="yv4)oA,w)WU2,}d}1tk-"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="AHs?*T:3V{e-b{DIhEXx"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="63+qn:o::3*uSVL8m6^-"><field name="NUM">100</field></shadow></value></block></value></block></value></block></statement></block></next></block></statement><statement name="ELSE"><block type="actuator_onboard_neopixel_rgb_all" id="+.pny*(#:6^h3L-z~NFI"><value name="RVALUE"><shadow type="math_number" id="*u8+A/Vf;@-2*G[)/]`T"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="1+Wr6=lan.RPm-PWHXQJ"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="3hbKuxLXWi9~3#@qcKcM"><field name="NUM">0</field></shadow></value><next><block type="controls_try_finally" id="]A+Q([X#z7+dM![MFAy^"><mutation elseif="1"></mutation><statement name="try"><block type="communicate_bluetooth_connect" id="~!iXN-L:Ps)}!]h,/.J."><field name="mode">name</field><value name="VAR"><shadow type="variables_get" id="9VEWPT8rh}5Ff8}/*V)A"><field name="VAR">ble_c</field></shadow></value><value name="data"><shadow type="text" id="CfGo8/gi,AR*K]2{`XGj"><field name="TEXT">Mixly_Slave</field></shadow></value></block></statement><value name="IF1"><shadow type="factory_block_return" id="R*2U:ly(`[OJfc?p-Ap0"><field name="VALUE">Exception as e</field></shadow></value></block></next></block></statement><next><block type="actuator_onboard_neopixel_write" id="x{9n82KL0_-aBEY;!dR?"></block></next></block></statement></block></next></block></next></block><block type="procedures_defnoreturn" id=".~m//vcw/4bqXhelWdlA" x="-874" y="115"><mutation><arg name="data" varid="*5WT[`,Lbe5En3jd}uUk"></arg></mutation><field name="NAME">ble_method</field><statement name="STACK"><block type="system_print" id="#Y$-S#_x]A.!mEMB?2uI"><value name="VAR"><shadow type="text" id=".I.wzz^2,(!(Y,@5|(0b"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="YYoln/_(:IX$f*I$v0p("><field name="VAR">data</field></block></value><next><block type="display_show_image_or_string_delay" id="vynqTA4;Rw+CG5!*$?f$"><field name="center">True</field><value name="data"><shadow type="text" id="m46djm/{~]|xO.k^N_c$"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="u]`_JvLc-:7YiVX*jV;5"><field name="VAR">data</field></block></value><value name="space"><shadow type="math_number" id="5,39h_[^M)LB,t-C*pHl"><field name="NUM">0</field></shadow></value></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IGJsZV9jZW50cmFsCmZyb20gbWl4Z29fbm92YSBpbXBvcnQgb25ib2FyZF9yZ2IKaW1wb3J0IG1peGdvX25vdmEKaW1wb3J0IHJhbmRvbQppbXBvcnQgbWFjaGluZQpmcm9tIG1peGdvX25vdmEgaW1wb3J0IG9uYm9hcmRfdGZ0CgpkZWYgYmxlX21ldGhvZChkYXRhKToKICAgIHByaW50KGRhdGEpCiAgICBvbmJvYXJkX3RmdC5zaG93cyhkYXRhLHNwYWNlID0gMCxjZW50ZXIgPSBUcnVlKQoKCgpibGVfYyA9IGJsZV9jZW50cmFsLkJMRVNpbXBsZUNlbnRyYWwoKQpibGVfYy5yZWN2KGJsZV9tZXRob2QpCndoaWxlIFRydWU6CiAgICBpZiBibGVfYy5pc19jb25uZWN0ZWQoKToKICAgICAgICBvbmJvYXJkX3JnYi5maWxsKCgwLCAwLCAxMCkpCiAgICAgICAgaWYgbWl4Z29fbm92YS5CMWtleS53YXNfcHJlc3NlZCgpOgogICAgICAgICAgICBibGVfYy5zZW5kKHN0cigocmFuZG9tLnJhbmRpbnQoMSwgMTAwKSkpKQogICAgZWxzZToKICAgICAgICBvbmJvYXJkX3JnYi5maWxsKCgwLCAwLCAwKSkKICAgICAgICB0cnk6CiAgICAgICAgICAgIGJsZV9jLmNvbm5lY3QobmFtZT0nTWl4bHlfU2xhdmUnKQogICAgICAgIGV4Y2VwdCBFeGNlcHRpb24gYXMgZToKICAgICAgICAgICAgcGFzcwogICAgb25ib2FyZF9yZ2Iud3JpdGUoKQo=</code> |