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

1 line
4.4 KiB
XML

<xml version="Mixly 2.0 rc4" board="Python Robot@飞乙"><variables><variable id="kujED6C|3`}2*o!`dvF;">x</variable></variables><block type="sensor_mixgo_button_attachInterrupt" id=".tYK9eOD7PxFd4]jy-I/" x="-2789" y="-1014"><field name="mode">machine.Pin.IRQ_RISING</field><value name="btn"><shadow type="pins_button" id="8};3cF-g+vRgUU;HZ8n~"><field name="PIN">button_a</field></shadow></value><value name="DO"><shadow type="factory_block_return" id="#m#Cc21GwhNQL_XTAF;r"><field name="VALUE">attachInterrupt_func</field></shadow></value><next><block type="sensor_mixgo_button_attachInterrupt" id="A{q}Puik}b6?N2)@X2h4"><field name="mode">machine.Pin.IRQ_RISING</field><value name="btn"><shadow type="pins_button" id="_54w0}mrnYeHVmPM@y[K"><field name="PIN">button_b</field></shadow></value><value name="DO"><shadow type="factory_block_return" id="^BpSMWOFJRef]IH$Xfft"><field name="VALUE">attachInterrupt_func2</field></shadow></value><next><block type="controls_whileUntil" id="H.d3JohNgQX_ph+4=O5Z"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="cB^l(2(DclQr]^!rujbV"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="display_show_image" id="!_WF9ZjQM_)dZkX{|4+f"><value name="data"><shadow type="pins_builtinimg" id="TDWG7xA^Wh[g@8pZ;e*C"><field name="PIN">onboard_matrix.HEART</field></shadow></value><next><block type="controls_delay_new" id="9k$/J=$,yeyUsAVAa3QC"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="m|mmBq${^)-y*edS/M?Y"><field name="NUM">0.5</field></shadow></value><next><block type="display_show_image" id="@^Xqs`{3MC$.*H}?(`UL"><value name="data"><shadow type="pins_builtinimg" id="h?WGh#Q.sVF..(-@d)=5"><field name="PIN">onboard_matrix.HEART_SMALL</field></shadow></value><next><block type="controls_delay_new" id="v3se]T)+yU3}r#ZjnHSK"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="9p@tZU)P_/)~r}I$xtY;"><field name="NUM">0.5</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block><block type="procedures_defnoreturn" id="]hp2cy)Q+?K?;:Uxd+Eh" x="-2775" y="-673"><mutation><arg name="x" varid="kujED6C|3`}2*o!`dvF;"></arg></mutation><field name="NAME">attachInterrupt_func</field><statement name="STACK"><block type="actuator_onboard_neopixel_rgb_all" id="z{e`QQ*tjC9.!CBz;2_@"><value name="RVALUE"><shadow type="math_number" id="T?+,/w1CHr]43{zttc22"><field name="NUM">50</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="]ivJYk!6_UoEx*e{:;kx"><field name="NUM">50</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="{c{8C]8@)Xh6E$.[}M/Q"><field name="NUM">50</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="RPgQmdoK{nrXunw^u49e"></block></next></block></statement></block><block type="procedures_defnoreturn" id="Z+twhP)XHQv3vq366w3H" x="-2769" y="-538"><mutation><arg name="x" varid="kujED6C|3`}2*o!`dvF;"></arg></mutation><field name="NAME">attachInterrupt_func2</field><statement name="STACK"><block type="actuator_onboard_neopixel_rgb_all" id="xXvShZZrH!H9q^Ot8E5Y"><value name="RVALUE"><shadow type="math_number" id=");xBdH(U_)fZ-(.#sC$j"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="3gIA{BuI,Z=EJSukLBCW"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="EO2K;xsgRIj60T#3nug."><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="/HC@3Q.?y#[zfb`6!m!1"></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IGZlaXlpCmZyb20gZmVpeWkgaW1wb3J0IG9uYm9hcmRfbWF0cml4CmltcG9ydCB0aW1lCmZyb20gZmVpeWkgaW1wb3J0IG9uYm9hcmRfcmdiCgpkZWYgYXR0YWNoSW50ZXJydXB0X2Z1bmMoeCk6CiAgICBvbmJvYXJkX3JnYi5maWxsKCg1MCwgNTAsIDUwKSkKICAgIG9uYm9hcmRfcmdiLndyaXRlKCkKCmRlZiBhdHRhY2hJbnRlcnJ1cHRfZnVuYzIoeCk6CiAgICBvbmJvYXJkX3JnYi5maWxsKCgwLCAwLCAwKSkKICAgIG9uYm9hcmRfcmdiLndyaXRlKCkKCgoKZmVpeWkuYnV0dG9uX2EuaXJxKGhhbmRsZXIgPSBhdHRhY2hJbnRlcnJ1cHRfZnVuYywgdHJpZ2dlciA9IG1hY2hpbmUuUGluLklSUV9SSVNJTkcpCmZlaXlpLmJ1dHRvbl9iLmlycShoYW5kbGVyID0gYXR0YWNoSW50ZXJydXB0X2Z1bmMyLCB0cmlnZ2VyID0gbWFjaGluZS5QaW4uSVJRX1JJU0lORykKd2hpbGUgVHJ1ZToKICAgIG9uYm9hcmRfbWF0cml4LnNob3dzKG9uYm9hcmRfbWF0cml4LkhFQVJUKQogICAgdGltZS5zbGVlcCgwLjUpCiAgICBvbmJvYXJkX21hdHJpeC5zaG93cyhvbmJvYXJkX21hdHJpeC5IRUFSVF9TTUFMTCkKICAgIHRpbWUuc2xlZXAoMC41KQo=</code>