1 line
4.0 KiB
XML
1 line
4.0 KiB
XML
<xml version="Mixly 2.0 rc4" board="Python Robot@飞乙"><block type="controls_whileUntil" id="8ov:nK7j!pDhKi9{!RT8" x="-1764" y="-851"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="E]oF=$MB-_kM|UobRNaW"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="actuator_onboard_neopixel_rgb" id="4g.,XU437QIY1r}CNNic"><value name="_LED_"><shadow type="math_number" id="c]6Ev4f=U4w}a8ealL[("><field name="NUM">3</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="j04Ed2?,VZw;4O*syoek"><field name="NUM">0</field></shadow><block type="text_to_number" id="LHk,@`~+U:LxQ|MEN(*T"><field name="TOWHAT">int</field><value name="VAR"><shadow type="variables_get" id="o{2i~[C6wHn9[yCr,a89"><field name="VAR">x</field></shadow><block type="math_map" id="|u$k(b`^QwPDG5{-C1i4"><value name="NUM"><shadow type="math_number" id="I{!;~cf.Wr`3V/@U*yhi"><field name="NUM">50</field></shadow><block type="sensor_bitbot_ALS" id="T#/!iQu@7swU=asD/~ni"><value name="mode"><shadow type="bitbot_als_num" id="1Wog3sJKe.I.;N9Qc8P~"><field name="PIN">0</field></shadow></value></block></value><value name="fromLow"><shadow type="math_number" id="R5XYwN0xLW;02tK,?FZT"><field name="NUM">0</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="+-9q#:f[VP`3rX~wUgD{"><field name="NUM">100</field></shadow></value><value name="toLow"><shadow type="math_number" id="#v$a7NjBi5dkkk)_lOiY"><field name="NUM">0</field></shadow></value><value name="toHigh"><shadow type="math_number" id="rr~-|a{oo=/WewZl4]Nh"><field name="NUM">255</field></shadow></value></block></value></block></value><value name="GVALUE"><shadow type="math_number" id="*g1Q_+fnMyZ_0{]opkq["><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="f3iFLXgi{Q+Cyt/c,.~L"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_rgb" id="fHXrE~wupuStgIx$9tV|"><value name="_LED_"><shadow type="math_number" id="M.b_,:Eye+D0c[*$(KZj"><field name="NUM">2</field></shadow></value><value name="RVALUE"><shadow type="math_number" id="j04Ed2?,VZw;4O*syoek"><field name="NUM">0</field></shadow><block type="text_to_number" id="?FZRqeEFO5Ts5:ir[_L3"><field name="TOWHAT">int</field><value name="VAR"><shadow type="variables_get" id="!k/x+5v|CW?]{3b`e3L3"><field name="VAR">x</field></shadow><block type="math_map" id="=(M~~$58pE/+/{6=-~^."><value name="NUM"><shadow type="math_number" id="I{!;~cf.Wr`3V/@U*yhi"><field name="NUM">50</field></shadow><block type="sensor_bitbot_ALS" id="m8gjFi!)ZDm6{[,{^0BQ"><value name="mode"><shadow type="bitbot_als_num" id="dK(,8N`zA:Q)!E[yL@pq"><field name="PIN">1</field></shadow></value></block></value><value name="fromLow"><shadow type="math_number" id="D0p2``Tlxd1#sXj/M}8r"><field name="NUM">0</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="gp;D*Xt.02/SIg/Mu6MW"><field name="NUM">100</field></shadow></value><value name="toLow"><shadow type="math_number" id="{^JksrH5jwoDbUou;;FQ"><field name="NUM">0</field></shadow></value><value name="toHigh"><shadow type="math_number" id="VHlrG9*7LMqY|a4S8AAY"><field name="NUM">255</field></shadow></value></block></value></block></value><value name="GVALUE"><shadow type="math_number" id=",6PwnsWHxTFoc_j+A_|B"><field name="NUM">0</field></shadow></value><value name="BVALUE"><shadow type="math_number" id="H6jcAHknc-@t)1r9N,p~"><field name="NUM">0</field></shadow></value><next><block type="actuator_onboard_neopixel_write" id="J6nJ4(3k_bc:sg:oCezl"></block></next></block></next></block></statement></block></xml><config>{}</config><code>ZnJvbSBmZWl5aSBpbXBvcnQgb25ib2FyZF9yZ2IKZnJvbSBmZWl5aSBpbXBvcnQgb25ib2FyZF9ib3Q1MQpmcm9tIG1peHB5IGltcG9ydCBtYXRoX21hcAoKCndoaWxlIFRydWU6CiAgICBvbmJvYXJkX3JnYlszXSA9IChpbnQoKG1hdGhfbWFwKG9uYm9hcmRfYm90NTEucmVhZF9hbHMoMCksIDAsIDEwMCwgMCwgMjU1KSkpLCAwLCAwKQogICAgb25ib2FyZF9yZ2JbMl0gPSAoaW50KChtYXRoX21hcChvbmJvYXJkX2JvdDUxLnJlYWRfYWxzKDEpLCAwLCAxMDAsIDAsIDI1NSkpKSwgMCwgMCkKICAgIG9uYm9hcmRfcmdiLndyaXRlKCkK</code> |