Files
mixly3/boards/default/micropython_robot/examples/O60xUtcmy977/HahpayoObmCS.mix
2024-07-21 09:30:11 +08:00

1 line
4.5 KiB
XML

<xml version="Mixly 2.0 rc4" board="Python Robot@飞乙"><variables><variable id="*5WT[`,Lbe5En3jd}uUk">data</variable></variables><block type="communicate_bluetooth_central_init" id="Tz=!s~W@p[:#xWAN;c(t" x="-871" y="-463"><value name="VAR"><shadow type="variables_get" id="+zU`14#G6Oy]|NGVvCaO"><field name="VAR">ble_c</field></shadow></value><next><block type="communicate_bluetooth_recv" id="h7VEtf{nmH655W2~MQZ-"><value name="VAR"><shadow type="variables_get" id="4{.83N$F#iy3I#?_PfG#"><field name="VAR">ble_c</field></shadow></value><value name="METHOD"><shadow type="factory_block_return" id="3?=f+#jgBMj=qJ_$o~zw"><field name="VALUE">ble_method</field></shadow></value><next><block type="controls_whileUntil" id="zXtfB3UX^tgU8d|J6H!K"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="q9p7IL96DIIH=MgBL!mq"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="a#rtd4_I$HefHSJouDxo"><mutation else="1"></mutation><value name="IF0"><block type="communicate_bluetooth_is_connected" id=";e}D5!TMrR;iZ1@9rxc."><value name="VAR"><shadow type="variables_get" id="RF:Un[36)z@Dp1uYeIr["><field name="VAR">ble_c</field></shadow></value></block></value><statement name="DO0"><block type="controls_if" id="vF9wV]c88soH08=E`lLu"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="~wT]-LHJsqh*(3*rAjhU"><value name="btn"><shadow type="pins_button" id="YeMPv`Tb1@m-=jA7+#k_"><field name="PIN">button_a</field></shadow></value></block></value><statement name="DO0"><block type="communicate_bluetooth_send" id="EeHZ=;S|W:quik+s;z92"><value name="VAR"><shadow type="variables_get" id="Xwv1`pwAZfMOYdzz?20N"><field name="VAR">ble_c</field></shadow></value><value name="data"><shadow type="text" id="##DNT66T|oF!una/4Vl="><field name="TEXT">test</field></shadow></value></block></statement><next><block type="display_show_image_or_string_delay" id="9PMc6hFXQ@$;],80+.Jw"><field name="center">True</field><value name="data"><shadow type="text" id="7+|K=D!t~x-[Wa^S:Btf"><field name="TEXT">OK</field></shadow></value><value name="space"><shadow type="math_number" id="$gMU+`,/mwVb`Lw^FaYL"><field name="NUM">0</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="display_show_image_or_string_delay" id="h3sH;({:BiNlGROk=[}G"><field name="center">True</field><value name="data"><shadow type="text" id="!jsC}mJwMj8A0ga|`(~x"><field name="TEXT">==</field></shadow></value><value name="space"><shadow type="math_number" id="H0VQ8Hn}45FN=LM1$Q.T"><field name="NUM">0</field></shadow></value><next><block type="controls_try_finally" id="(6eH9.1;-h+|9REHX-Np"><mutation elseif="1"></mutation><statement name="try"><block type="communicate_bluetooth_connect" id="jOxO,J4!mrrI,@=i?Fjo"><field name="mode">name</field><value name="VAR"><shadow type="variables_get" id="DvvY?Ej}@0UR-@0Ms;?n"><field name="VAR">ble_c</field></shadow></value><value name="data"><shadow type="text" id="5^*;=4=i9WhrT[iAo@D4"><field name="TEXT">Mixly_Slave</field></shadow></value></block></statement><value name="IF1"><shadow type="factory_block_return" id="{f*gu))7Ccl4HP!O3ak*"><field name="VALUE">Exception as e</field></shadow></value></block></next></block></statement></block></statement></block></next></block></next></block><block type="procedures_defnoreturn" id="O6RS],CE{B0)w4;|O=]l" x="-860" y="72"><mutation><arg name="data" varid="*5WT[`,Lbe5En3jd}uUk"></arg></mutation><field name="NAME">ble_method</field><statement name="STACK"><block type="system_print" id="h2JI:Qn|v@1Fv`uX(|[_"><value name="VAR"><shadow type="text" id="hzEG6@8FnR|p_]!kXm~Z"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="=[:Fn(HMlVVwu:8H}G`~"><field name="VAR">data</field></block></value></block></statement></block></xml><config>{}</config><code>aW1wb3J0IGJsZV9jZW50cmFsCmltcG9ydCBmZWl5aQpmcm9tIGZlaXlpIGltcG9ydCBvbmJvYXJkX21hdHJpeAppbXBvcnQgbWFjaGluZQoKZGVmIGJsZV9tZXRob2QoZGF0YSk6CiAgICBwcmludChkYXRhKQoKCgpibGVfYyA9IGJsZV9jZW50cmFsLkJMRVNpbXBsZUNlbnRyYWwoKQpibGVfYy5yZWN2KGJsZV9tZXRob2QpCndoaWxlIFRydWU6CiAgICBpZiBibGVfYy5pc19jb25uZWN0ZWQoKToKICAgICAgICBpZiBmZWl5aS5idXR0b25fYS53YXNfcHJlc3NlZCgpOgogICAgICAgICAgICBibGVfYy5zZW5kKCd0ZXN0JykKICAgICAgICBvbmJvYXJkX21hdHJpeC5zaG93cygnT0snLHNwYWNlID0gMCxjZW50ZXIgPSBUcnVlKQogICAgZWxzZToKICAgICAgICBvbmJvYXJkX21hdHJpeC5zaG93cygnPT0nLHNwYWNlID0gMCxjZW50ZXIgPSBUcnVlKQogICAgICAgIHRyeToKICAgICAgICAgICAgYmxlX2MuY29ubmVjdChuYW1lPSdNaXhseV9TbGF2ZScpCiAgICAgICAgZXhjZXB0IEV4Y2VwdGlvbiBhcyBlOgogICAgICAgICAgICBwYXNzCg==</code>