Files
mixly3/boards/default/micropython_esp32s3/examples/MixGo Nova/04-1-快速入门-流动的灯.mix
2025-03-25 17:15:24 +08:00

1 line
3.1 KiB
XML

<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控青春" shown="block"><block type="controls_whileUntil" id="xjk:/!,a5U=SArW+Qo`H" x="-1059" y="-724"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="=kn-;xxeLfCackSxCPYR"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_forEach" id="T/C/^-f@6^1O.jm+d^=`"><value name="LIST"><shadow type="list_many_input" id=";A9CtpDSsY763TQ]9Z`1"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="_sO{::Q)}-0+LSnVU!Xe"><value name="FROM"><shadow type="math_number" id="vTM$G;I)m8x*w2zL#M}["><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="?7Cigc^oTf)X~JKIdMFq"><field name="NUM">4</field></shadow></value><value name="STEP"><shadow type="math_number" id="x_RI.OC4)[Q)nYH-GH`J"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="5=x8l7$pB78;{Qq+Kbi("><field name="VAR">i</field></shadow></value><statement name="DO"><block type="actuator_onboard_neopixel_rgb" id="@eya]9I+[-N*yKOfJO|y"><value name="_LED_"><shadow type="math_number" id="`:|I2*5^_-n~xhQ?6H4l"><field name="NUM">0</field></shadow><block type="variables_get" id="{6ezl/$h??,=ZO},?wOT"><field name="VAR">i</field></block></value><value name="RVALUE"><shadow type="math_number" id="f[h){S*Sm_c1M;__vv=s"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="dZ:7HGqz6,5!WfI.}a=8"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="K~S~Jg?yVTe[?O--z{R4"><field name="NUM">25</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="7**h{;kc5L]*LO/EWvH_"><next><block type="controls_delay_new" id="}2xXwbK}1DW_F@Vq0$mR"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="w[kemNL#tU]nHL:-Z1^V"><field name="NUM">0.5</field></shadow></value></block></next></block></next></block></statement><next><block type="actuator_onboard_neopixel_rgb_all" id="O=b)3Pf+m[;XPLb4d6(~"><value name="RVALUE"><shadow type="math_number" id="#dLgg`pR:s7akSVU}kZ$"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="{Jw.Z5ds4#-C4ehU!g!|"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="$`uPYHEYO:D,p0!asLoK"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="BU0XqIt!=V=RfXxqBxCs"><next><block type="controls_delay_new" id="vdGf|Q=V{M/w7R+)bbeo"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="50;af`Pdp{NyXfY?e.)c"><field name="NUM">1</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml><config>{}</config><code>ZnJvbSBtaXhnb19ub3ZhIGltcG9ydCBvbmJvYXJkX3JnYgppbXBvcnQgdGltZQoKCndoaWxlIFRydWU6CiAgICBmb3IgaSBpbiByYW5nZSgwLCA0LCAxKToKICAgICAgICBvbmJvYXJkX3JnYltpXSA9ICgwLCAwLCAyNSkKICAgICAgICBvbmJvYXJkX3JnYi53cml0ZSgpCiAgICAgICAgdGltZS5zbGVlcCgwLjUpCiAgICBvbmJvYXJkX3JnYi5maWxsKCgwLCAwLCAwKSkKICAgIG9uYm9hcmRfcmdiLndyaXRlKCkKICAgIHRpbWUuc2xlZXAoMSkK</code>