1 line
4.0 KiB
XML
1 line
4.0 KiB
XML
<xml version="Mixly 2.0 rc4" board="Python ESP32-C2@MixGo MINI"><block type="controls_whileUntil" id="vGlKMH3wdmJj=zmFT6c@" x="-1455" y="-899"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="!^i,zdrjkQO5+d{7HytX"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="system_print" id="Vo-8(/me^9|VZup^6Q!L"><value name="VAR"><shadow type="text" id="!Fq!ao~6gO`TK1+/iLoT"><field name="TEXT">Mixly</field></shadow><block type="sensor_sound" id="pwrT!]^ET$3uU8vWvBbx"></block></value><next><block type="controls_forEach" id="s72[75RR.9Phol=ClK9H"><value name="LIST"><shadow type="list_many_input" id="17}`EYn/{4zq]Ms!:oPP"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="K;`F`ua}4:nW@[+bgj~V"><value name="FROM"><shadow type="math_number" id="ZCAd@VOxO9fa0-/VG}m="><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="Y-i,6SfjW[n5w]PZ0#5)"><field name="NUM">5</field></shadow><block type="text_to_number" id="i/3F![*S)?GeQR]|rbeb"><field name="TOWHAT">int</field><value name="VAR"><shadow type="variables_get" id="2~b=Uq]G#V4S`9=7A{Am"><field name="VAR">x</field></shadow><block type="math_map" id="A!jg~TRs|~s{obQ@iJU3"><value name="NUM"><shadow type="math_number" id="SN05Ln2LUiPb3xhWcW[="><field name="NUM">50</field></shadow><block type="sensor_sound" id="8Uzxk}3IxZ1Hi(U$!j~a"></block></value><value name="fromLow"><shadow type="math_number" id="zlPBK;x:hXm7PI^C/;$u"><field name="NUM">0</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="v(x7*HzqXE7=]RbeuJOW"><field name="NUM">100</field></shadow></value><value name="toLow"><shadow type="math_number" id="7sBF3I-y7jpC:JH/+PwT"><field name="NUM">0</field></shadow></value><value name="toHigh"><shadow type="math_number" id="0)tsIK]HceU9$(?L(^Nt"><field name="NUM">8</field></shadow></value></block></value></block></value><value name="STEP"><shadow type="math_number" id="QVMUtDrZ:^(x?KM4U!3s"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="jycVC#!j/K};q0)!k2_["><field name="VAR">y</field></shadow></value><statement name="DO"><block type="display_bright_point" id="^f1+fH4Qa92g}Z43y`:-"><value name="x"><shadow type="pins_exlcdh" id="VfMz(;)Z-uRm^:-YOJ:C"><field name="PIN">11</field></shadow></value><value name="y"><shadow type="pins_exlcdv" id="Cz*v1mM;Vq@|yhmb,|;^"><field name="PIN">0</field></shadow><block type="math_arithmetic" id="GIhqC,[[/T5f;_dNB^?Z"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="l,E}C?4Z}LLa,A7`7[T?"><field name="NUM">7</field></shadow></value><value name="B"><shadow type="math_number" id="0bY~:5U@OUr.oi,^h{~c"><field name="NUM">1</field></shadow><block type="variables_get" id="rhb`?(qAY[)~CnlM^,Yg"><field name="VAR">y</field></block></value></block></value><value name="STAT"><shadow type="display_onoff" id="t-H0`l[IR4Db8y=-nY!:"><field name="ONOFF">ON</field></shadow></value></block></statement><next><block type="display_shift" id="Q561s`1KOM+Z,[HKY4ku"><field name="OP">shift_left</field><value name="val"><shadow type="math_number" id="yg)8b1eVF2KgLeQzFN#q"><field name="NUM">1</field></shadow></value><next><block type="controls_delay_new" id="p`yYI08.H@TB/@4~MnDg"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="jXHCE=+^;3AP[Q,,xQeV"><field name="NUM">0.1</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKZnJvbSBtaXhnb19taW5pIGltcG9ydCBvbmJvYXJkX2JvdApmcm9tIG1peHB5IGltcG9ydCBtYXRoX21hcApmcm9tIG1peGdvX21pbmkgaW1wb3J0IG9uYm9hcmRfbWF0cml4CmltcG9ydCB0aW1lCgoKd2hpbGUgVHJ1ZToKICAgIHByaW50KG9uYm9hcmRfYm90LnNvdW5kbGV2ZWwoKSkKICAgIGZvciB5IGluIHJhbmdlKDAsIGludCgobWF0aF9tYXAob25ib2FyZF9ib3Quc291bmRsZXZlbCgpLCAwLCAxMDAsIDAsIDgpKSksIDEpOgogICAgICAgIG9uYm9hcmRfbWF0cml4LnBpeGVsKGludCgxMSksIGludCg3IC0geSksIDEpCiAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICBvbmJvYXJkX21hdHJpeC5zaGlmdF9sZWZ0KDEpCiAgICB0aW1lLnNsZWVwKDAuMSkK</code> |