Files
mixly3/boards/default/micropython_esp32s2/examples/17-1-复杂控制-双键中断.mix
2024-07-23 21:49:42 +08:00

1 line
4.4 KiB
XML

<xml version="Mixly 2.0 rc4" board="MixGo CE@MixGo CE"><variables><variable id="kujED6C|3`}2*o!`dvF;">x</variable></variables><block type="sensor_mixgo_button_attachInterrupt" id="G)fSTgDN/5.Wk6`Z)}Av" x="-2776" y="-1011"><field name="mode">machine.Pin.IRQ_RISING</field><value name="btn"><shadow type="pins_button" id="Pl?M}B/r~@Gh-3v!q?j3"><field name="PIN">B1key</field></shadow></value><value name="DO"><shadow type="factory_block_return" id="M}=-T,b6^P2DJp8A=W5J"><field name="VALUE">attachInterrupt_func</field></shadow></value><next><block type="sensor_mixgo_button_attachInterrupt" id="qm=|cWh[({P-GMz0[qPA"><field name="mode">machine.Pin.IRQ_RISING</field><value name="btn"><shadow type="pins_button" id="wTthv1gfRQ,nmcsrniFY"><field name="PIN">B2key</field></shadow></value><value name="DO"><shadow type="factory_block_return" id="pV~Jjb7d?dP.:2XoIa6F"><field name="VALUE">attachInterrupt_func2</field></shadow></value><next><block type="controls_whileUntil" id="*Ol?E|1^51Km/UUh(_[]"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="^L;G4*[-XS2NB#cD-#J!"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="display_show_image" id=")(o!RM[;814d:sdWy3=U"><value name="data"><shadow type="pins_builtinimg" id="TadkGFT(gS_1TS~~GUe*"><field name="PIN">onboard_matrix.HEART</field></shadow></value><next><block type="controls_delay_new" id="j8JCw:`])`)lF4RRxd|q"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="5fl=3wvG9U+PtLsf9F@y"><field name="NUM">0.5</field></shadow></value><next><block type="display_show_image" id=":+DIU7S+*owULWymqt]="><value name="data"><shadow type="pins_builtinimg" id="~s|U?U`8a:x,*Q;*8KOS"><field name="PIN">onboard_matrix.HEART_SMALL</field></shadow></value><next><block type="controls_delay_new" id="-/[f^!C1X}K|2d.~aK2F"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="ji)@VufU5o+Zk:yHqf]O"><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="]L4=pt1|6XT}I]_@A#fH" x="-2521" y="-705"><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="l0PLkVp2BnP*J/_GZJ`@"><value name="RVALUE"><shadow type="math_number" id="-Nebd8uY4a@Q2eio5.aK"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="}nbSCYaWX=`LlT{/tkem"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="d4o@Nk=fWXbK*kvqb35+"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="$3O[!f]8Vwr@M(K!|f|U"></block></next></block></statement></block><block type="procedures_defnoreturn" id="s#PVH8c##`fi|GpS@a!7" x="-2951" y="-653"><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="l0Slk@RAHegK6!5:XA8?"><value name="RVALUE"><shadow type="math_number" id="!;Q$mCF~J[EUd7Mn*ts@"><field name="NUM">10</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="u2*B8,;LqLI0Ls#TB8r4"><field name="NUM">10</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="x(@Mt?p)3kNs}!tyZzb+"><field name="NUM">10</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="XyRhE@;$xFP4Tj4tkg[i"></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IG1peGdvX2NlCmZyb20gbWl4Z29fY2UgaW1wb3J0IG9uYm9hcmRfbWF0cml4CmltcG9ydCB0aW1lCmZyb20gbWl4Z29fY2UgaW1wb3J0IG9uYm9hcmRfcmdiCgpkZWYgYXR0YWNoSW50ZXJydXB0X2Z1bmMyKHgpOgogICAgb25ib2FyZF9yZ2IuZmlsbCgoMCwgMCwgMCkpCiAgICBvbmJvYXJkX3JnYi53cml0ZSgpCgpkZWYgYXR0YWNoSW50ZXJydXB0X2Z1bmMoeCk6CiAgICBvbmJvYXJkX3JnYi5maWxsKCgxMCwgMTAsIDEwKSkKICAgIG9uYm9hcmRfcmdiLndyaXRlKCkKCgoKbWl4Z29fY2UuQjFrZXkuaXJxKGhhbmRsZXIgPSBhdHRhY2hJbnRlcnJ1cHRfZnVuYywgdHJpZ2dlciA9IG1hY2hpbmUuUGluLklSUV9SSVNJTkcpCm1peGdvX2NlLkIya2V5LmlycShoYW5kbGVyID0gYXR0YWNoSW50ZXJydXB0X2Z1bmMyLCB0cmlnZ2VyID0gbWFjaGluZS5QaW4uSVJRX1JJU0lORykKd2hpbGUgVHJ1ZToKICAgIG9uYm9hcmRfbWF0cml4LnNob3dzKG9uYm9hcmRfbWF0cml4LkhFQVJUKQogICAgdGltZS5zbGVlcCgwLjUpCiAgICBvbmJvYXJkX21hdHJpeC5zaG93cyhvbmJvYXJkX21hdHJpeC5IRUFSVF9TTUFMTCkKICAgIHRpbWUuc2xlZXAoMC41KQo=</code>