1 line
4.6 KiB
XML
1 line
4.6 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控自强(SANT)" shown="block"><comment id="P{k4wL7mC^h4B+h}_1/^" x="52" y="-458" w="150.23318481445312" h="100">外接旋钮通过typec接到13号管脚</comment><block type="inout_analog_read_init" id="As`A(0ij_#ZL|BMncdsC" x="-886" y="-553"><field name="PIN_OBJ">adc#</field><value name="PIN"><shadow type="pins_analog_pin" id="Z+[su1YAJqmn;Q?[7+~+"><field name="PIN">13</field></shadow></value><next><block type="inout_analog_atten" id="xw@ZCG,~.58#0Mb@@J_t"><field name="atten">machine.ADC.ATTN_11DB</field><value name="PIN"><shadow type="pins_analog" id="Bes}x^!A.eo^=E.@1leu"><field name="PIN">adc13</field></shadow></value><next><block type="controls_whileUntil" id="lt7`-``z-Fr2qn;]]Ulm"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="yUKqL3rNN;^JHM)][S+l"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="~gTo:K^H-Sic;fVDS@p."><field name="VAR">RGB</field><value name="VALUE"><block type="math_to_int" id="Q]DNpx[$xAb*#ds[zYoU"><field name="OP">round</field><value name="A"><shadow type="math_number" id="}:L3wWye}F,3v;X(kzEb"><field name="NUM">0.998</field></shadow><block type="math_map" id="WZlmuX~5n~`HP}_NV=SC"><value name="NUM"><shadow type="math_number" id="wJW=$D:+nKk22^}ja`ob"><field name="NUM">50</field></shadow><block type="inout_analog_read" id="7!-CP+N{JRpQY99Kz~NR"><value name="PIN"><shadow type="pins_analog" id="zxx:`t$ku]j{$:g6`!@!"><field name="PIN">adc13</field></shadow></value></block></value><value name="fromLow"><shadow type="math_number" id="A={k~a-v6*Xkw7icAMWb"><field name="NUM">0</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="ME6Qsg:Auk2:bs.K{;}r"><field name="NUM">65535</field></shadow></value><value name="toLow"><shadow type="math_number" id="co.(ly*GrA-{b51)6P9-"><field name="NUM">0</field></shadow></value><value name="toHigh"><shadow type="math_number" id="@42~Kk28tj!zQ@Ry/Y_l"><field name="NUM">4</field></shadow></value></block></value></block></value><next><block type="actuator_onboard_neopixel_rgb_all" id="N7FL@s9t)V}i6?@`IJ0]"><value name="RVALUE"><shadow type="math_number" id="c)]oN4j8Aph)kA3NU{Wo"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="WO3/4JWI^RT!2$k}E?X3"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="Gg.t#ULJq7Qza5Mr#{[6"><field name="NUM">0</field></shadow></value><next><block type="controls_forEach" id="FC~8yelD,H!#;*k6uO?G"><value name="LIST"><shadow type="list_many_input" id="XZ@mhds|AhD-HZ1`16~N"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="4?!Y37THhjsZz13/6(]]"><value name="FROM"><shadow type="math_number" id="9D:9R|rq1E8HOCN^4#tH"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="*gYCq,:v3t]f]o.`nuu5"><field name="NUM">5</field></shadow><block type="variables_get" id="w^+6r(cMxss:p-P*~#sZ"><field name="VAR">RGB</field></block></value><value name="STEP"><shadow type="math_number" id="9o=W.lrinSkjj@mW2Ko="><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="?`A1.#0!]g*my+gpdo[M"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="actuator_onboard_neopixel_rgb" id="Ck8Zia6PAxs*)/jfL5sE"><value name="_LED_"><shadow type="math_number" id="]T=i1+wy*)mDuGl=i}Nc"><field name="NUM">0</field></shadow><block type="variables_get" id="C/XPT^@POx1Q3{=14Ji7"><field name="VAR">i</field></block></value><value name="RVALUE"><shadow type="math_number" id="*:We,plmpNo2DSC;~KA:"><field name="NUM">0</field></shadow></value><value name="GVALUE"><shadow type="math_number" id="ff(Q_b/,5JNtU:oieAqQ"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="jk0$K~}N_u!XcU;`FVtE"><field name="NUM">30</field></shadow></value></block></statement><next><block type="actuator_onboard_neopixel_write" id="`oS~}gD@1-gHa;f54Xl8"></block></next></block></next></block></next></block></statement></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKZnJvbSBtaXhweSBpbXBvcnQgbWF0aF9tYXAKZnJvbSBtaXhnb19zYW50IGltcG9ydCBvbmJvYXJkX3JnYgoKCmFkYzEzID0gbWFjaGluZS5BREMobWFjaGluZS5QaW4oMTMpKQphZGMxMy5hdHRlbihtYWNoaW5lLkFEQy5BVFROXzExREIpCndoaWxlIFRydWU6CiAgICBSR0IgPSByb3VuZChtYXRoX21hcChhZGMxMy5yZWFkX3UxNigpLCAwLCA2NTUzNSwgMCwgNCkpCiAgICBvbmJvYXJkX3JnYi5maWxsKCgwLCAwLCAwKSkKICAgIGZvciBpIGluIHJhbmdlKDAsIFJHQiwgMSk6CiAgICAgICAgb25ib2FyZF9yZ2JbaV0gPSAoMCwgMCwgMzApCiAgICBvbmJvYXJkX3JnYi53cml0ZSgpCg==</code> |