1 line
5.8 KiB
XML
1 line
5.8 KiB
XML
<xml version="Mixly 2.0 rc4" board="Python ESP32-C3@MixGo CC"><variables><variable id="*5WT[`,Lbe5En3jd}uUk">data</variable></variables><block type="communicate_bluetooth_central_init" id=",E3rAJjESjX_=W-k8H{A" x="-871" y="-463"><value name="VAR"><shadow type="variables_get" id="nd#d@=()[+`Cw#*/^8G:"><field name="VAR">ble_c</field></shadow></value><next><block type="communicate_bluetooth_recv" id="F:xR|0:jZnAgAuF}$xX-"><value name="VAR"><shadow type="variables_get" id="Am?ZLq`CF-$0oGV;*8_*"><field name="VAR">ble_c</field></shadow></value><value name="METHOD"><shadow type="factory_block_return" id="DvHHuwG[gupOt:)NE}u)"><field name="VALUE">ble_method</field></shadow></value><next><block type="controls_whileUntil" id="A,PJ:pZYP!i?`(=!g!`b"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="W=Lr|KWfYXW1dsWnx9^g"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="o7Xnk^kP[@*.u=C=Yhi)"><mutation else="1"></mutation><value name="IF0"><block type="communicate_bluetooth_is_connected" id="sGcocqg^/p`Q-/o~ceN("><value name="VAR"><shadow type="variables_get" id="S,TD)r1B|qZwgU/4HeN("><field name="VAR">ble_c</field></shadow></value></block></value><statement name="DO0"><block type="actuator_onboard_neopixel_rgb_all" id="AQ)j*4A;w1APhN!0IVSN"><value name="RVALUE"><shadow type="math_number" id="X)c3cUfug.yaQ@F55^H_"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="]KHy;|llub-EKx,w0W6?"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="JZZV}`HnG{Kat3G!B,,f"><field name="NUM">10</field></shadow></value><next><block type="controls_if" id="AyDqqP8trCLWMGDZ@ujj"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="9tsYeSoK4BQfcip/i[M#"><value name="btn"><shadow type="pins_button" id="C0433|6G#g^c.AAor4A1"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="communicate_bluetooth_send" id="Fvm!k!e7)Iz_t/O@E+7A"><value name="VAR"><shadow type="variables_get" id="w]o.M,mJ5H@6,$C4R9_2"><field name="VAR">ble_c</field></shadow></value><value name="data"><shadow type="text" id="dk5/DF]#Z;JhvmGE+bVq"><field name="TEXT">数据</field></shadow><block type="number_to_text" id="1sGu*N-^J0+RY;:[TY]}"><value name="VAR"><shadow type="variables_get" id="U)31+,I;7Vvc~7oOqoN~"><field name="VAR">x</field></shadow><block type="math_random" id="R`J.#,w`3Z$!mrfm)kR2"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="F~LG?-y_HZvH`?/]rf|P"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="RiWe$LQXeQWq0eS+YON;"><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="Z0hi7##P}OAlJM@D9)#n"><value name="RVALUE"><shadow type="math_number" id="}AL#Cj[y:@W+MH,b=kLV"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id=";`YF$9y0m,gzX_!W:_Pk"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="kC*B70C#zhS[3m*.K:Gj"><field name="NUM">0</field></shadow></value><next><block type="controls_try_finally" id="T8C;7QFk+]9p;R$D13l5"><mutation elseif="1"></mutation><statement name="try"><block type="communicate_bluetooth_connect" id="-@}*1Shl[;Br=C+CLD)c"><field name="mode">name</field><value name="VAR"><shadow type="variables_get" id="^p9_eJ0`_]$(Y;,IuNyw"><field name="VAR">ble_c</field></shadow></value><value name="data"><shadow type="text" id="@uh}JR[ZIag^D]NlxYPb"><field name="TEXT">Mixly_Slave</field></shadow></value></block></statement><value name="IF1"><shadow type="factory_block_return" id="|#^Pnk#Kh:FzMepJ@vy#"><field name="VALUE">Exception as e</field></shadow></value></block></next></block></statement><next><block type="actuator_onboard_neopixel_write" id="k~X#VEgpZrm`3V]n27=I"></block></next></block></statement></block></next></block></next></block><block type="procedures_defnoreturn" id="WKZ2B:F|ySshP}Y8Sre*" 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="phxJMX(i4^B@On@!*1Vj"><value name="VAR"><shadow type="text" id="bb3BIqs.2n_=ZdLnG$3e"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="A{n=ym,m6AvnhJzX;Kf3"><field name="VAR">data</field></block></value><next><block type="display_show_image_or_string_delay" id="}s)K!ZtARFDT)Cazk2J~"><field name="center">True</field><value name="data"><shadow type="text" id="GT3k?(sRk3cn!hG3whV+"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="wbchF!hO)~Y1oK~noa-m"><field name="VAR">data</field></block></value><value name="space"><shadow type="math_number" id="F][N5ft9nXgKYQ$mxhxw"><field name="NUM">0</field></shadow></value></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IGJsZV9jZW50cmFsCmZyb20gbWl4Z29fY2MgaW1wb3J0IG9uYm9hcmRfcmdiCmltcG9ydCBtaXhnb19jYwppbXBvcnQgcmFuZG9tCmltcG9ydCBtYWNoaW5lCmZyb20gbWl4Z29fY2MgaW1wb3J0IG9uYm9hcmRfbWF0cml4CgpkZWYgYmxlX21ldGhvZChkYXRhKToKICAgIHByaW50KGRhdGEpCiAgICBvbmJvYXJkX21hdHJpeC5zaG93cyhkYXRhLHNwYWNlID0gMCxjZW50ZXIgPSBUcnVlKQoKCgpibGVfYyA9IGJsZV9jZW50cmFsLkJMRVNpbXBsZUNlbnRyYWwoKQpibGVfYy5yZWN2KGJsZV9tZXRob2QpCndoaWxlIFRydWU6CiAgICBpZiBibGVfYy5pc19jb25uZWN0ZWQoKToKICAgICAgICBvbmJvYXJkX3JnYi5maWxsKCgwLCAwLCAxMCkpCiAgICAgICAgaWYgbWl4Z29fY2MuQjFrZXkud2FzX3ByZXNzZWQoKToKICAgICAgICAgICAgYmxlX2Muc2VuZChzdHIoKHJhbmRvbS5yYW5kaW50KDEsIDEwMCkpKSkKICAgIGVsc2U6CiAgICAgICAgb25ib2FyZF9yZ2IuZmlsbCgoMCwgMCwgMCkpCiAgICAgICAgdHJ5OgogICAgICAgICAgICBibGVfYy5jb25uZWN0KG5hbWU9J01peGx5X1NsYXZlJykKICAgICAgICBleGNlcHQgRXhjZXB0aW9uIGFzIGU6CiAgICAgICAgICAgIHBhc3MKICAgIG9uYm9hcmRfcmdiLndyaXRlKCkK</code> |