Files
mixly3/boards/default/micropython_esp32s2/examples/04-1-快速入门-流动的灯.mix
2024-07-23 21:49:42 +08:00

1 line
3.1 KiB
XML

<xml version="Mixly 2.0 rc4" board="MixGo CE@MixGo CE"><block type="controls_whileUntil" id="jW0m[K#`M9j}|(H6)SRk" x="-1059" y="-724"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="8_Zt{HV+`T~;7LNjEO3L"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_forEach" id=",]YHIHH-:DUG!Vd[ApqL"><value name="LIST"><shadow type="list_many_input" id="K!Me$[ah`t4zlk$98Z1r"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="Os;{3_XNtON.da_7(ZCd"><value name="FROM"><shadow type="math_number" id=")9-WDjmAnSCokg1,!@WJ"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="kOqjqji4l.|TegNy9]A+"><field name="NUM">4</field></shadow></value><value name="STEP"><shadow type="math_number" id="ReT!k0nivwLat;T;~7J/"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="dv~qo@7X^(f~`o^{;WpG"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="actuator_onboard_neopixel_rgb" id="qsmcttnoaOhtaY-1/|(*"><value name="_LED_"><shadow type="math_number" id="2,wD#$*F:jCRrS}EJb#r"><field name="NUM">0</field></shadow><block type="variables_get" id="Dq#:U[Jc$7yM:|5Re1=k"><field name="VAR">i</field></block></value><value name="RVALUE"><shadow type="math_number" id="jP]Ae+5A3Tn6~4cC_9;V"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="z9UitvNlrw3V.ejWvJaD"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="]z!CfVW/(i*i_jJ!@LIV"><field name="NUM">25</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="Xm/;I#yPI#Zzj^anR_GL"><next><block type="controls_delay_new" id="t2!}$SVO.i4f},zsne)j"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="Vg]y92c*vK}93D].pWq@"><field name="NUM">0.5</field></shadow></value></block></next></block></next></block></statement><next><block type="actuator_onboard_neopixel_rgb_all" id="^LiPBGe/P05{^h.]VSe]"><value name="RVALUE"><shadow type="math_number" id="LEU.f!|ex:q3uooz3,K~"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="RanxV-;`Us[^-ijVT!JO"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id=")biPL6]x/x1z;Xv^IhJq"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="*:haglIQ|^$B8i3,(m{-"><next><block type="controls_delay_new" id="geif}M04@(N*dPca=(uU"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="4;GB[.+g-i=P2JO-`,!r"><field name="NUM">1</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml><config>{}</config><code>ZnJvbSBtaXhnb19jZSBpbXBvcnQgb25ib2FyZF9yZ2IKaW1wb3J0IHRpbWUKCgp3aGlsZSBUcnVlOgogICAgZm9yIGkgaW4gcmFuZ2UoMCwgNCwgMSk6CiAgICAgICAgb25ib2FyZF9yZ2JbaV0gPSAoMCwgMCwgMjUpCiAgICAgICAgb25ib2FyZF9yZ2Iud3JpdGUoKQogICAgICAgIHRpbWUuc2xlZXAoMC41KQogICAgb25ib2FyZF9yZ2IuZmlsbCgoMCwgMCwgMCkpCiAgICBvbmJvYXJkX3JnYi53cml0ZSgpCiAgICB0aW1lLnNsZWVwKDEpCg==</code>