1 line
4.7 KiB
XML
1 line
4.7 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-C2@MixGo MINI" shown="block"><block type="actuator_neopixel_init" id="w/Vp{s[{Tq0_77uJy=!F" x="0" y="0"><value name="SUB"><shadow type="variables_get" id="tR[5jbXi)(r0jT@6z7M^"><field name="VAR">rgb</field></shadow></value><value name="PIN"><shadow type="pins_digital_pin" id="^_h-9|*cer3$DHZ^ZeKj"><field name="PIN">4</field></shadow></value><value name="LEDCOUNT"><shadow type="math_number" id="Eu,(tDZ*zu4z_;#V}^$9"><field name="NUM">12</field></shadow></value><next><block type="controls_whileUntil" id="aj=?2dIc|5gj?Dte)[w6"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="K;I+QouO|}-eYa*$7WQP"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="Mo#q+kEVdiHR[Yc`.;=2"><mutation elseif="1"></mutation><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="?dziCIh25!c`OGK00pQd"><value name="btn"><shadow type="pins_button" id="I#jyEG7MPv2lWQ6J4Nc}"><field name="PIN">A1key</field></shadow></value></block></value><statement name="DO0"><block type="math_random_seed" id="u$e-Z|f}]C]y4.x-oXWO"><value name="NUM"><shadow type="math_number" id="/:PS;,MdHXnQBSHC!hgd"><field name="NUM">997</field></shadow><block type="controls_millis" id="g,Ytc]8iS@*b}12@4wR7"><field name="Time">ms</field></block></value><next><block type="actuator_neopixel_rgb_all" id="/J0Vm^+Mg+SZ!0t#eN(J" inline="false"><value name="SUB"><shadow type="variables_get" id="ji=uML4oLj9,i10];OK*"><field name="VAR">rgb</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="!kQiO,L![*XH@3cyarF0"><field name="NUM">0</field></shadow><block type="math_random" id="o?tFp5jN5WEj$ZM;L^xA"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="_q7EM8^N?=qf*HE;2/X:"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="xh/#J0.m*R{#4~dh0JXk"><field name="NUM">255</field></shadow></value></block></value><value name="GVALUE"><shadow type="math_number" id="1^BRN+yQrj`N8gcIX(#B"><field name="NUM">0</field></shadow><block type="math_random" id=";UD11E,1SfA-5jZyP4fq"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="yOH,+!s0QCD$1UrHm$@Y"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="ZX.vF@jeoAP})J-fjt:}"><field name="NUM">255</field></shadow></value></block></value><value name="BVALUE"><shadow type="math_number" id="b{V0s4qBGK+1w/O^5/(N"><field name="NUM">0</field></shadow><block type="math_random" id="8-j)y,F-GB0CvTeBh.aO"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="3blVm.n|Ili8x}bU5^`-"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="bvK,aB[hU$la`;HPtLR]"><field name="NUM">255</field></shadow></value></block></value><next><block type="actuator_neopixel_write" id="[TZ6JqTATGB}YalBif9/"><value name="SUB"><shadow type="variables_get" id="HG5w~.}.0Z;6O]M7rE|,"><field name="VAR">rgb</field></shadow></value></block></next></block></next></block></statement><value name="IF1"><block type="sensor_mixgo_button_was_pressed" id="c9u)K6R009W4LH/ngKIY"><value name="btn"><shadow type="pins_button" id="}gB`ZezBn1x1dRA(K0g~"><field name="PIN">A2key</field></shadow></value></block></value><statement name="DO1"><block type="actuator_neopixel_rgb_all" id="Z(WO1Gj9A2VFh{:3]7wA"><value name="SUB"><shadow type="variables_get" id="Hc=e2h)Exij]?i^|7yPJ"><field name="VAR">rgb</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="!kQiO,L![*XH@3cyarF0"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="1^BRN+yQrj`N8gcIX(#B"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="b{V0s4qBGK+1w/O^5/(N"><field name="NUM">0</field></shadow></value><next><block type="actuator_neopixel_write" id="348^,s7P4.$__dT!)myb"><value name="SUB"><shadow type="variables_get" id="GKB2}aaIi2-t9:N@287-"><field name="VAR">rgb</field></shadow></value></block></next></block></statement></block></statement></block></next></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKaW1wb3J0IG5lb3BpeGVsCmltcG9ydCBtaXhnb19taW5pCmltcG9ydCByYW5kb20KaW1wb3J0IHRpbWUKCgpyZ2IgPSBuZW9waXhlbC5OZW9QaXhlbChtYWNoaW5lLlBpbig0KSwgMTIpCndoaWxlIFRydWU6CiAgICBpZiBtaXhnb19taW5pLkExa2V5Lndhc19wcmVzc2VkKCk6CiAgICAgICAgcmFuZG9tLnNlZWQodGltZS50aWNrc19tcygpKTsKICAgICAgICByZ2IuZmlsbCgoKHJhbmRvbS5yYW5kaW50KDAsIDI1NSkpLCAocmFuZG9tLnJhbmRpbnQoMCwgMjU1KSksIChyYW5kb20ucmFuZGludCgwLCAyNTUpKSkpCiAgICAgICAgcmdiLndyaXRlKCkKICAgIGVsaWYgbWl4Z29fbWluaS5BMmtleS53YXNfcHJlc3NlZCgpOgogICAgICAgIHJnYi5maWxsKCgwLCAwLCAwKSkKICAgICAgICByZ2Iud3JpdGUoKQo=</code> |