Files
mixly3/boards/default/micropython_esp32s3/examples/wJmk17OsKBWA/anZoph4QQ_Wv.mix
2024-07-21 09:30:11 +08:00

1 line
4.5 KiB
XML

<xml version="Mixly 2.0 rc4" board="Python ESP32-S3@元控青春"><variables><variable id="kujED6C|3`}2*o!`dvF;">x</variable></variables><block type="sensor_mixgo_button_attachInterrupt" id="==NDWRFQ#?8Zal38f(r}" x="-2776" y="-1011"><field name="mode">machine.Pin.IRQ_RISING</field><value name="btn"><shadow type="pins_button" id="$?J3f4kB}bv=U!X2V2CT"><field name="PIN">B1key</field></shadow></value><value name="DO"><shadow type="factory_block_return" id="$N8L!.qw|]4cUQk+K+I2"><field name="VALUE">attachInterrupt_func</field></shadow></value><next><block type="sensor_mixgo_button_attachInterrupt" id="-do*@bIKGDr(*CU(Nf1E"><field name="mode">machine.Pin.IRQ_RISING</field><value name="btn"><shadow type="pins_button" id="v=uR81j}aH4^rl5iJkiX"><field name="PIN">B2key</field></shadow></value><value name="DO"><shadow type="factory_block_return" id="arf~@a4Jjr?0C`2V1/Xu"><field name="VALUE">attachInterrupt_func2</field></shadow></value><next><block type="controls_whileUntil" id="O7/1Nd@3Hbi9,sKQb~i:"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="AK=MjK22p7vcyp7vX2Yz"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="actuator_led_bright" id=";JYhM6i:,{LHy_o?dlZF"><value name="led"><shadow type="number" id="9W/,sj}LkEcXe$JLXNG5"><field name="op">2</field></shadow></value><value name="bright"><shadow type="ledswitch" id="9ZIX7z04v+xM9[5k$PKZ"><field name="flag">1</field></shadow></value><next><block type="controls_delay_new" id="amVU)_-A{Ba`Bsd6-$)v"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="+GsUe:@_)pn#0+Zv,lRG"><field name="NUM">0.5</field></shadow></value><next><block type="actuator_led_bright" id="+;hW[ed}/UO4zf)YT5:q"><value name="led"><shadow type="number" id="R/2bSvAwDcpIQiNAPFKC"><field name="op">2</field></shadow></value><value name="bright"><shadow type="ledswitch" id="eW7J$@jY2dNFTvV]vFzd"><field name="flag">0</field></shadow></value><next><block type="controls_delay_new" id="Z[$}on|lL2Z#?;-ylIT4"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="X)ss/K_K-~6JyS_KoU_I"><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="`pVyaq!H^yAY|3)-@_m0" 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="4+SPyOo7os4co{Ixkuc["><value name="RVALUE"><shadow type="math_number" id="D*SYbH__BFO!.mH)s;.o"><field name="NUM">10</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="xW],hF0wn_?_yrsZFeQ~"><field name="NUM">10</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="6;9+d@IH`Rw|of:e9]s#"><field name="NUM">10</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="_x7a;?^rMoTQ~JJ(]XLf"></block></next></block></statement></block><block type="procedures_defnoreturn" id="~hC1K;MTw!.ZGJ5b~nl)" x="-2523" y="-626"><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="@2:]~qZ~7(vEg3@G2!.]"><value name="RVALUE"><shadow type="math_number" id=",kre|rxEy]e{,H7KUx)x"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="Ci8l#Wb;ul4p.HVRxjPo"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="O.9N$x9H/:;XVI|4(BM)"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="DFo7IaJ+B/fU*B:=3Nq:"></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IG1peGdvX25vdmEKZnJvbSBtaXhnb19ub3ZhIGltcG9ydCBvbmJvYXJkX2xlZAppbXBvcnQgdGltZQpmcm9tIG1peGdvX25vdmEgaW1wb3J0IG9uYm9hcmRfcmdiCgpkZWYgYXR0YWNoSW50ZXJydXB0X2Z1bmMoeCk6CiAgICBvbmJvYXJkX3JnYi5maWxsKCgxMCwgMTAsIDEwKSkKICAgIG9uYm9hcmRfcmdiLndyaXRlKCkKCmRlZiBhdHRhY2hJbnRlcnJ1cHRfZnVuYzIoeCk6CiAgICBvbmJvYXJkX3JnYi5maWxsKCgwLCAwLCAwKSkKICAgIG9uYm9hcmRfcmdiLndyaXRlKCkKCgoKbWl4Z29fbm92YS5CMWtleS5pcnEoaGFuZGxlciA9IGF0dGFjaEludGVycnVwdF9mdW5jLCB0cmlnZ2VyID0gbWFjaGluZS5QaW4uSVJRX1JJU0lORykKbWl4Z29fbm92YS5CMmtleS5pcnEoaGFuZGxlciA9IGF0dGFjaEludGVycnVwdF9mdW5jMiwgdHJpZ2dlciA9IG1hY2hpbmUuUGluLklSUV9SSVNJTkcpCndoaWxlIFRydWU6CiAgICBvbmJvYXJkX2xlZC5zZXRvbm9mZigyLDEpCiAgICB0aW1lLnNsZWVwKDAuNSkKICAgIG9uYm9hcmRfbGVkLnNldG9ub2ZmKDIsMCkKICAgIHRpbWUuc2xlZXAoMC41KQo=</code>