Files
mixly3/boards/default/micropython_esp32s3/examples/MixGo Sant/智能物联从体验到精通/3年级/5-2-1 计时红绿灯-计时红绿灯.mix
2025-12-31 09:45:01 +08:00

1 line
6.2 KiB
XML

<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控自强" shown="block"><block type="controls_whileUntil" id="EUm,f`Dwr@CMjlt[t$UM" x="-2109" y="-93"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id=".k-@sr1x4EoDogQdZQ-_"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="actuator_onboard_neopixel_rgb" id="^SqE(@7cA*n40gi(Cn-u"><value name="_LED_"><shadow type="math_number" id="7-ANeQJf0f[x8yRTE;F5"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="PqzyE+=AjmQ{0WJlDP$M"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="yv:!dvwPcRJhn4db/r,#"><field name="NUM">30</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="fyBx1Li{1{TRl0g7^!~z"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="bkCreLk?NBVvDl,vr3!*"><next><block type="controls_forEach" id=".OPN)Q1fdlOKY]/CgJN-"><value name="LIST"><shadow type="list_many_input" id="i[,/7cjx0T01:`.qvnm3"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="*/hXxi]!hkb6Fih{tPsS"><value name="FROM"><shadow type="math_number" id="owj}CwzDB~HIKK[f(AKc"><field name="NUM">9</field></shadow></value><value name="TO"><shadow type="math_number" id="1M*HcyPU~D*cvgt=A~VB"><field name="NUM">-1</field></shadow></value><value name="STEP"><shadow type="math_number" id="$ozbF?TgjrK@_^5OY.^N"><field name="NUM">-1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="E_-T]1:I:o]M4pG=rDu/"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="controls_delay_new" id="JO#x3Fy15Ao1_Fi~l@~@"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="mPb]U6G0_R##shAQ/8@N"><field name="NUM">0.2</field></shadow></value><next><block type="display_show_image_or_string_delay" id="/[(K?-i/Kxv9rhmnl_=I"><field name="center">True</field><value name="data"><shadow type="text" id="k^/Ie~7:npQ3i[){6O#A"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id=".g@7xPGe9UOnR.-2z!XJ"><field name="VAR">i</field></block></value><value name="space"><shadow type="math_number" id="D_Z.G}O}tCjcrm[Zu,2O"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="8Y}a(#piYRc)-5s[u)tr"><field name="BOOL">TRUE</field></shadow></value></block></next></block></statement><next><block type="actuator_onboard_neopixel_rgb" id="L-KVX1L#nGnxVo5R9D/Z"><value name="_LED_"><shadow type="math_number" id="L_poyPJF-;kvz6[6!Mr/"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="w6tGXBM+2xxfNjod+{03"><field name="NUM">30</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="AA.=[~aXZ~+BgE)WnR}Z"><field name="NUM">30</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="kjs{zfXFz|AJ3gjlV:xq"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="|[b:#k_yw0F,iU~*U|uZ"><next><block type="controls_delay_new" id=";]~J!ghY#~Uu~Z|g4^B`"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="v_q{zJc{C=[LRDUbzwj_"><field name="NUM">0.5</field></shadow></value><next><block type="actuator_onboard_neopixel_rgb" id="lu!1tUDZt?+Y_@75BW{K"><value name="_LED_"><shadow type="math_number" id="(yf9Xv^ce^YP_57M))[0"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id=")Eg1I,k|T$a,V+$VrN64"><field name="NUM">30</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="+11].NqGlrZ8$[bA[{[["><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="`5?T))Pl/^.f1S07v6,$"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="G~Ekb0BS=4k^uelB[7wS"><next><block type="controls_forEach" id="*SAde]Zku6bHSlsJFYxS"><value name="LIST"><shadow type="list_many_input" id="t$JKAdH*`Ghp!+=ZF4NI"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="F/#r9Km37l!:3UT*oWAr"><value name="FROM"><shadow type="math_number" id="6$.?He|y~9OSyeu::^.k"><field name="NUM">9</field></shadow></value><value name="TO"><shadow type="math_number" id="o/.*Xv=NPO0FJy+]5@b~"><field name="NUM">-1</field></shadow></value><value name="STEP"><shadow type="math_number" id="?@?3driqpO9QfL)MkCpW"><field name="NUM">-1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="PFkdp5N2v6ODs973d0tE"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="controls_delay_new" id="m3#2]J.?Sf-9-^m$`@E("><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="/GFZcmS!q[U$Qy$z~.L2"><field name="NUM">0.2</field></shadow></value><next><block type="display_show_image_or_string_delay" id="_`EZFyv7EZ0TjHqBcetQ"><field name="center">True</field><value name="data"><shadow type="text" id="gdt08u09G^l$?K-r1`$Y"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="UIq^lc{ORZmc5GRf[dQp"><field name="VAR">i</field></block></value><value name="space"><shadow type="math_number" id="trLqzznL,}b_E57ewbnd"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="{8O/cLrql3rt[^q|$sWM"><field name="BOOL">TRUE</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml><config>{}</config><code>ZnJvbSBtaXhnb19zYW50IGltcG9ydCBvbmJvYXJkX3JnYgppbXBvcnQgdGltZQpmcm9tIG1peGdvX3NhbnQgaW1wb3J0IG9uYm9hcmRfdGZ0Cgp3aGlsZSBUcnVlOgogICAgb25ib2FyZF9yZ2JbMF0gPSAoMCwgMzAsIDApCiAgICBvbmJvYXJkX3JnYi53cml0ZSgpCiAgICBmb3IgaSBpbiByYW5nZSg5LCAtMSwgLTEpOgogICAgICAgIHRpbWUuc2xlZXAoMC4yKQogICAgICAgIG9uYm9hcmRfdGZ0LnNob3dzKGksIHNwYWNlPTAsIGNlbnRlcj1UcnVlLHN5bmM9VHJ1ZSkKICAgIG9uYm9hcmRfcmdiWzBdID0gKDMwLCAzMCwgMCkKICAgIG9uYm9hcmRfcmdiLndyaXRlKCkKICAgIHRpbWUuc2xlZXAoMC41KQogICAgb25ib2FyZF9yZ2JbMF0gPSAoMzAsIDAsIDApCiAgICBvbmJvYXJkX3JnYi53cml0ZSgpCiAgICBmb3IgaSBpbiByYW5nZSg5LCAtMSwgLTEpOgogICAgICAgIHRpbWUuc2xlZXAoMC4yKQogICAgICAgIG9uYm9hcmRfdGZ0LnNob3dzKGksIHNwYWNlPTAsIGNlbnRlcj1UcnVlLHN5bmM9VHJ1ZSkK</code>