Files
mixly3/boards/default/micropython_robot/examples/0tAPk7aoL8zm/eYsTKe70LdO7.mix
2024-07-23 20:47:22 +08:00

1 line
2.9 KiB
XML

<xml version="Mixly 2.0 rc4" board="Python Robot@飞乙"><block type="controls_whileUntil" id="zXtfB3UX^tgU8d|J6H!K" x="-1097" y="-321"><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="sBiG,J!ypTD(xZttLMql"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="xtL?/J]Gq+W@m(nY`?Dm"><value name="btn"><shadow type="pins_button" id=",JU6L8os:6ZELISWQjXZ"><field name="PIN">button_a</field></shadow></value></block></value><statement name="DO0"><block type="bitbot_motor" id="4Y*59M~fJJ-NwF+ryI^T"><field name="wheel">1</field><field name="direction">CW</field><value name="speed"><shadow type="math_number" id="ijFX,V{M[?bu$`3W$Ya;"><field name="NUM">30</field></shadow></value><next><block type="controls_delay_new" id="Bt:1*ng.=a}(B[^c]@*h"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="$II2MnC3EPXoq?akn4^V"><field name="NUM">300</field></shadow></value><next><block type="bitbot_motor" id=":ombH91b9*5a/8{/~Wy("><field name="wheel">1</field><field name="direction">P</field><value name="speed"><shadow type="math_number" id="P^5[x#Y;L},Xx*A$d![y"><field name="NUM">30</field></shadow></value></block></next></block></next></block></statement><next><block type="controls_if" id="=|DfFO68.Db,[emD#/^-"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="9w_~*3.|dv/VyFL!{2--"><value name="btn"><shadow type="pins_button" id="*x+n+N{!$6oibed=.l|n"><field name="PIN">button_b</field></shadow></value></block></value><statement name="DO0"><block type="bitbot_motor" id="f@5?y9Sb3^MX`w5*LNoi"><field name="wheel">1</field><field name="direction">CCW</field><value name="speed"><shadow type="math_number" id="6POfSU)W=Jm]$9zM[d?S"><field name="NUM">30</field></shadow></value><next><block type="controls_delay_new" id="I+:E:H2WmB@8+Tm}h:Q["><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="b1_vQg)!dQ-U3!hVG!Xf"><field name="NUM">500</field></shadow></value><next><block type="bitbot_motor" id="mBE6GA09OFHy{.Nca|aX"><field name="wheel">1</field><field name="direction">P</field><value name="speed"><shadow type="math_number" id="YStiqhd9L*SX6Yvx}[5#"><field name="NUM">30</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IGZlaXlpCmZyb20gZmVpeWkgaW1wb3J0IG9uYm9hcmRfYm90NTEKaW1wb3J0IHRpbWUKCgp3aGlsZSBUcnVlOgogICAgaWYgZmVpeWkuYnV0dG9uX2Eud2FzX3ByZXNzZWQoKToKICAgICAgICBvbmJvYXJkX2JvdDUxLm1vdG9yKDEsIkNXIiwzMCkKICAgICAgICB0aW1lLnNsZWVwX21zKDMwMCkKICAgICAgICBvbmJvYXJkX2JvdDUxLm1vdG9yKDEsIlAiLDMwKQogICAgaWYgZmVpeWkuYnV0dG9uX2Iud2FzX3ByZXNzZWQoKToKICAgICAgICBvbmJvYXJkX2JvdDUxLm1vdG9yKDEsIkNDVyIsMzApCiAgICAgICAgdGltZS5zbGVlcF9tcyg1MDApCiAgICAgICAgb25ib2FyZF9ib3Q1MS5tb3RvcigxLCJQIiwzMCkK</code>