Files
mixly3-server/mixly/boards/default/micropython_esp32s3/examples/MixGo Nova/17-1-复杂控制-双键中断.mix

1 line
4.6 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控青春NOVA" shown="block"><variables><variable id="kujED6C|3`}2*o!`dvF;">x</variable></variables><block type="sensor_mixgo_button_attachInterrupt" id="+CV1?edF3pv?DB*E^a2Z" x="-2776" y="-1011"><field name="mode">machine.Pin.IRQ_RISING</field><value name="btn"><shadow type="pins_button" id="rkR*P5+J.^fQU~fD~-ty"><field name="PIN">B1key</field></shadow></value><value name="DO"><shadow type="factory_block_return" id="b1/{a}~d{+Vk.6?cqQML"><field name="VALUE">attachInterrupt_func</field></shadow></value><next><block type="sensor_mixgo_button_attachInterrupt" id="YbL**jA~.CvDd(pc/N?X"><field name="mode">machine.Pin.IRQ_RISING</field><value name="btn"><shadow type="pins_button" id="8bbO=F?gSc_GDjUdEU[Y"><field name="PIN">B2key</field></shadow></value><value name="DO"><shadow type="factory_block_return" id="izP0[~AE.-nWP:1lM9+b"><field name="VALUE">attachInterrupt_func2</field></shadow></value><next><block type="controls_whileUntil" id="LO9xp~#gD6MDWv(F*QTB"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id=",Re,:HTBzVi!pEW6pC{/"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="actuator_led_bright" id="so6V6~r:bJcMF9G}D.fm"><value name="led"><shadow type="number" id="5tIj~`j/ZUiiYf7|m-rI"><field name="op">2</field></shadow></value><value name="bright"><shadow type="ledswitch" id="d09C54u?{4*fZh6l`K7q"><field name="flag">1</field></shadow></value><next><block type="controls_delay_new" id="[gWngqx1hQJ@jhy$fWEc"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="8L^ojVc)aB.oU[`utIA5"><field name="NUM">0.5</field></shadow></value><next><block type="actuator_led_bright" id="AZapJnkZVPjGFpqsYu/y"><value name="led"><shadow type="number" id="s1)h,[1Hw4S_mcEi7mH8"><field name="op">2</field></shadow></value><value name="bright"><shadow type="ledswitch" id="WsVbm)wHQ8#L+(i!T?F}"><field name="flag">0</field></shadow></value><next><block type="controls_delay_new" id="t/]?TAIVTS=UigGu1^.N"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="KE:)jUp)Nv~GtI-/V2rd"><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="NfJ|E$mQ6ZB~!Sh|)TMm" 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="Wqd`,cmQ12bUFdE3MV0i"><value name="RVALUE"><shadow type="math_number" id="hEH@fUF68toQf@8?avM3"><field name="NUM">10</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="u;l+=qaI9(6nFoUod;#b"><field name="NUM">10</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="X{4KZe]esR(W^TO@#g@H"><field name="NUM">10</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="`IDvUcG#]3v^7*.DE?M."></block></next></block></statement></block><block type="procedures_defnoreturn" id="]*[s*ibc,r]Dm,jl:NIW" x="-2535" y="-652"><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="dIkYE]G=nCH+ml.eA!V,"><value name="RVALUE"><shadow type="math_number" id="I/R8DK8e|;Kl+pJH^g_+"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="hZoKE@vOjfxoPHmie^X/"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="~oYJ5w:TdYR`:KSFC~d/"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="o`*o_!!up+5n4-KjcChA"></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IG1peGdvX25vdmEKZnJvbSBtaXhnb19ub3ZhIGltcG9ydCBvbmJvYXJkX2xlZAppbXBvcnQgdGltZQpmcm9tIG1peGdvX25vdmEgaW1wb3J0IG9uYm9hcmRfcmdiCgoKZGVmIGF0dGFjaEludGVycnVwdF9mdW5jKHgpOgogICAgb25ib2FyZF9yZ2IuZmlsbCgoMTAsIDEwLCAxMCkpCiAgICBvbmJvYXJkX3JnYi53cml0ZSgpCgpkZWYgYXR0YWNoSW50ZXJydXB0X2Z1bmMyKHgpOgogICAgb25ib2FyZF9yZ2IuZmlsbCgoMCwgMCwgMCkpCiAgICBvbmJvYXJkX3JnYi53cml0ZSgpCgoKCm1peGdvX25vdmEuQjFrZXkuaXJxKGhhbmRsZXI9YXR0YWNoSW50ZXJydXB0X2Z1bmMsIHRyaWdnZXI9bWFjaGluZS5QaW4uSVJRX1JJU0lORykKbWl4Z29fbm92YS5CMmtleS5pcnEoaGFuZGxlcj1hdHRhY2hJbnRlcnJ1cHRfZnVuYzIsIHRyaWdnZXI9bWFjaGluZS5QaW4uSVJRX1JJU0lORykKd2hpbGUgVHJ1ZToKICAgIG9uYm9hcmRfbGVkLnNldG9ub2ZmKDIsMSkKICAgIHRpbWUuc2xlZXAoMC41KQogICAgb25ib2FyZF9sZWQuc2V0b25vZmYoMiwwKQogICAgdGltZS5zbGVlcCgwLjUpCg==</code>