Files
mixly3/boards/default/micropython_esp32s3/examples/MixGo Nova/07-2-过程控制-自动补光.mix

1 line
8.9 KiB
XML

<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控青春" shown="block"><block type="variables_set" id="6Jfd`__yh;q@@|Md._Yh" x="-1817" y="-936"><field name="VAR">当前光强左</field><value name="VALUE"><block type="math_number" id="?ZaYx=hm)z{~ko[DQ:]z"><field name="NUM">0</field></block></value><next><block type="variables_set" id="RZY7hx*9|u,KS5gKy8`f"><field name="VAR">补光大小左</field><value name="VALUE"><block type="math_number" id="tj=JrqlZ[YG$4#HpczA6"><field name="NUM">0</field></block></value><next><block type="variables_set" id="t4;2Y$qEs/|J95Y?OKE3"><field name="VAR">当前光强右</field><value name="VALUE"><block type="math_number" id="/wg1iI(x?.AxQTp~z~Md"><field name="NUM">0</field></block></value><next><block type="variables_set" id=",3Zr8HBW}#(jP^EV1hHq"><field name="VAR">补光大小右</field><value name="VALUE"><block type="math_number" id="?nhY`7.2.3Ko7+{iK)w("><field name="NUM">0</field></block></value><next><block type="controls_whileUntil" id="EK9IDLMOL4tmatADg,vc"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id=";ub^vnww{/#F.N)FsHt)"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="ElVo[0f?PLlm^mhl4rz]"><field name="VAR">当前光强左</field><value name="VALUE"><block type="text_to_number" id="wyxA(vM?dCRKMLa;z9kc"><field name="TOWHAT">int</field><value name="VAR"><shadow type="variables_get" id="3^^R5|;ZN|#B9F}.RF;;"><field name="VAR">x</field></shadow><block type="sensor_mixgo_nova_LTR308" id="$gyMiPpSS@@gh-9ITh~;"><field name="direction">l</field></block></value></block></value><next><block type="variables_set" id="xh.m!;T.[lsA~.A^uf)S"><field name="VAR">当前光强右</field><value name="VALUE"><block type="text_to_number" id="O=e91DM[.5EFx^3rp07f"><field name="TOWHAT">int</field><value name="VAR"><shadow type="variables_get" id="m8kFjGH`X.^~i0v$ZT[:"><field name="VAR">x</field></shadow><block type="sensor_mixgo_nova_LTR308" id="bPQNPY-OL4Jood1B/~$+"><field name="direction">r</field></block></value></block></value><next><block type="onboard_tft_show_image_or_string_delay" id="F*mf+NziyagF8^$iV(xJ"><field name="center">True</field><value name="data"><shadow type="text" id="B$j4o_?cOfGbR5mU8BWr"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="AX*2]$]ZKrK6A=Bab3[N"><value name="VAR"><shadow type="variables_get" id="E+[k[Pl`pks3=)lVsaR_"><field name="VAR">x</field></shadow><block type="text_format_noreturn" id="o8n_rn:#MR8Di{D^4k=~"><mutation items="2"></mutation><value name="VAR"><shadow type="text" id="-M,kZD(B5cj=WVH.;qUE"><field name="TEXT">左:{} 右:{}</field></shadow></value><value name="ADD0"><block type="sensor_mixgo_nova_LTR308" id="/D}5H|#sx2~..2r50ML4"><field name="direction">l</field></block></value><value name="ADD1"><block type="sensor_mixgo_nova_LTR308" id="cx!we~Z4_-L,|_d(;i8o"><field name="direction">r</field></block></value></block></value></block></value><value name="x"><shadow type="math_number" id="n(1AC`qCmFvbmf4nu(+r"><field name="NUM">0</field></shadow></value><value name="y"><shadow type="math_number" id="RxT=-)pN6,(d910EVb0g"><field name="NUM">64</field></shadow></value><value name="size"><shadow type="math_number" id="vSJ}0l($muNzw/GXnFuU"><field name="NUM">1</field></shadow></value><value name="space"><shadow type="math_number" id="^AsA(:]=_g1*~iiZFnyV"><field name="NUM">0</field></shadow></value><value name="VAR"><shadow type="tuple_create_with_text_return" id="~8!wM?ob9,B@B}d/it=:"><field name="TEXT">255,255,0</field></shadow><block type="display_color_seclet" id="q@CN^,4vmnF$($6}|P`,"><field name="COLOR">#ffffff</field></block></value><value name="boolean"><shadow type="logic_boolean" id="1Ci`Uvu=m$ho(m$|_=:^"><field name="BOOL">TRUE</field></shadow></value><next><block type="variables_set" id="-yO7Q(U{a~+/lmZ!~F;Q"><field name="VAR">补光大小左</field><value name="VALUE"><block type="math_constrain" id="UgniRw4bB}CL@!EO;`t3"><value name="VALUE"><shadow type="math_number" id="[TZJ/*n_5NrV[Ax_Tc@U"><field name="NUM">1000</field></shadow><block type="math_arithmetic" id="bcpq6_hhQYn.qXy8vl9o"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="h+]EdY-Ai!{}VUyHRDRa"><field name="NUM">25</field></shadow></value><value name="B"><shadow type="math_number" id="3^FIM7aA+0rQ~kVUd^38"><field name="NUM">1</field></shadow><block type="variables_get" id="Y}8d4e)u3~l.ZJ:?zFU:"><field name="VAR">当前光强左</field></block></value></block></value><value name="LOW"><shadow type="math_number" id="@=,):7]f53S~`WGNk0|J"><field name="NUM">0</field></shadow></value><value name="HIGH"><shadow type="math_number" id="dHr[p|wh@dq~f-VVz/*a"><field name="NUM">25</field></shadow></value></block></value><next><block type="variables_set" id="Px90{!pFJ!5aEd{Tt4hk"><field name="VAR">补光大小右</field><value name="VALUE"><block type="math_constrain" id="M^NdIEQ_NUl|[RLF#5jG"><value name="VALUE"><shadow type="math_number" id="Jw`N8fWNjT`#Y?A/yS6X"><field name="NUM">1000</field></shadow><block type="math_arithmetic" id="$rj9SP2KcXqW@8oScw)J"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="x6umYE^]b]:kT.|`x9}8"><field name="NUM">25</field></shadow></value><value name="B"><shadow type="math_number" id="xk!CpN}^D,t7VQG+EM@?"><field name="NUM">1</field></shadow><block type="variables_get" id="0y8B#s481e1zBpfp|BT7"><field name="VAR">当前光强右</field></block></value></block></value><value name="LOW"><shadow type="math_number" id="vR;;r9fn2RbxllzHiK-+"><field name="NUM">0</field></shadow></value><value name="HIGH"><shadow type="math_number" id="Hr|.yj[BZuXY^q*OHc94"><field name="NUM">25</field></shadow></value></block></value><next><block type="actuator_onboard_neopixel_rgb" id="D~,hIY9[Fkcza=sks+m@"><value name="_LED_"><shadow type="math_number" id="MIfQsBXs)ri8nmjQlnS3"><field name="NUM">0</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="#+=pJqn_8eWgp)Jn:[{!"><field name="NUM">0</field></shadow><block type="variables_get" id="^upj(Dju0tsK/5@m=Rxt"><field name="VAR">补光大小左</field></block></value><value name="GVALUE"><shadow type="math_number" id="t*-#n1Yh9#zfZcLixggh"><field name="NUM">0</field></shadow><block type="variables_get" id="L1-Yi1.Ah0+pC8P|XId6"><field name="VAR">补光大小左</field></block></value><value name="BVALUE"><shadow type="math_number" id="@3lKL|.F.5[0G#Cy2S:S"><field name="NUM">0</field></shadow><block type="variables_get" id="SY{u{`A,^$}4~VmeK1N,"><field name="VAR">补光大小左</field></block></value><next><block type="actuator_onboard_neopixel_rgb" id="D]Iy{byWoEwdI`QIx=pv"><value name="_LED_"><shadow type="math_number" id=".5qRZVj+2PAS7zJ_q4Fx"><field name="NUM">3</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="2b75$bKZ*9Q#y3fTl1RX"><field name="NUM">0</field></shadow><block type="variables_get" id="-kd*r[~0#u4s^a3rH+n:"><field name="VAR">补光大小右</field></block></value><value name="GVALUE"><shadow type="math_number" id="tY!=l~=t9KvOGr0~i9TY"><field name="NUM">0</field></shadow><block type="variables_get" id="8Ss_.I+V$PlYb*21$=g["><field name="VAR">补光大小右</field></block></value><value name="BVALUE"><shadow type="math_number" id="9308b](soCk262*PBYb1"><field name="NUM">0</field></shadow><block type="variables_get" id="xw@NU|3htFeu)=MrHyYZ"><field name="VAR">补光大小右</field></block></value><next><block type="actuator_onboard_neopixel_write" id="6]aJGteM_v@:wNzWlNX?"><next><block type="controls_delay_new" id="$!o-`:d]:V}e)a9RT7Jl"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="b;#H`^hTwhpsol}ewEa("><field name="NUM">0.1</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>ZnJvbSBtaXhnb19ub3ZhIGltcG9ydCBvbmJvYXJkX2Fsc19sCmZyb20gbWl4Z29fbm92YSBpbXB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