update examples

This commit is contained in:
fredqian
2025-02-25 10:39:48 +08:00
parent 9eb5e500fe
commit 08a2e18af9
20 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1 @@
<xml version="Mixly 3.0 rc0" board="Python ESP32-C2@MixGo MINI" shown="block"><block type="controls_whileUntil" id="i-vX7oF);/,,YlXjE]*j" x="-675" y="-487"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="?eGDJbGLJqFGoA_WG0St"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_forEach" id=",1(-Omw_m(~m7,U;QLj;"><value name="LIST"><shadow type="list_many_input" id="KjS3Xc=afY~h.//v(55g"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="t`8IZ:Wu-ho,L:Glize}"><value name="FROM"><shadow type="math_number" id="uZF+f]leEPj10.gbt-*,"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id=",lXvW1furb5Izf~lXq*e"><field name="NUM">10</field></shadow></value><value name="STEP"><shadow type="math_number" id="--=KO~c(v{lxEva1OK0o"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="0R0k^?6;^Y9ycWEC0t8f"><field name="VAR">篮子位置</field></shadow></value><statement name="DO"><block type="display_clear" id="BTw$F[s__~g8C=K^a(^s"><next><block type="display_bright_point" id="ZK?;S;:SpMXWQ|)(01O6"><value name="x"><shadow type="pins_exlcdh" id="P?dQ(IiI5{Yd^FCxKJ-m"><field name="PIN">0</field></shadow><block type="math_arithmetic" id="*L1nuQ:XdIk27BCIPz$e"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="0B.7S.SPaV5]AMWjXMVX"><field name="NUM">1</field></shadow><block type="variables_get" id="EfjNBSy[Dsors:EAMu-x"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="dwmu8VU.X4E|(B-[:tH1"><field name="NUM">0</field></shadow></value></block></value><value name="y"><shadow type="pins_exlcdv" id=";RFoaiaYN,M}aWVeYuxE"><field name="PIN">7</field></shadow></value><value name="STAT"><shadow type="display_onoff" id="4TceV8H(dvYtkmfhrY!8"><field name="ONOFF">ON</field></shadow></value><next><block type="display_bright_point" id="c-{R@(CV(`80c2k:In=*"><value name="x"><shadow type="pins_exlcdh" id="ccgE1a2~?B0)6L@PGY@["><field name="PIN">1</field></shadow><block type="math_arithmetic" id="ah-SO|X}1j]wjo$(I^L]"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="QD,gboD;wHS-fNbpeoTE"><field name="NUM">1</field></shadow><block type="variables_get" id="hJK$j*bgVf3)-54apg28"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="gapK$$}DrtmfOA9bTVZ{"><field name="NUM">1</field></shadow></value></block></value><value name="y"><shadow type="pins_exlcdv" id="m@H-dl-0}Sz;nnQnjeNI"><field name="PIN">7</field></shadow></value><value name="STAT"><shadow type="display_onoff" id="]A^}`?p_}{g!5s~A0O99"><field name="ONOFF">ON</field></shadow></value><next><block type="display_bright_point" id="dJ,]+?EJ.T?XsoB-^/(c"><value name="x"><shadow type="pins_exlcdh" id="fN}:SeWROR/L`H8@Iq,b"><field name="PIN">2</field></shadow><block type="math_arithmetic" id=".BaKKo*^0G3g$S*VHO^("><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="_@f~,/Ep]dARpINqq2od"><field name="NUM">1</field></shadow><block type="variables_get" id="!c^$gRv_Rt$RJ:7U#4l3"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="+dP)~v,T/-412)|QH2`N"><field name="NUM">2</field></shadow></value></block></value><value name="y"><shadow type="pins_exlcdv" id="wM1J4oc=9s8wYzHXE^/h"><field name="PIN">7</field></shadow></value><value name="STAT"><shadow type="display_onoff" id="Ymoyl:Ecfo/0.mk(ob*v"><field name="ONOFF">ON</field></shadow></value><next><block type="controls_delay_new" id="l+rBxJ]fSUVhq){-alS2"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="zdS]duv5`S!kN}X~BAts"><field name="NUM">0.2</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></statement></block></xml><config>{}</config><code>ZnJvbSBtaXhnb19taW5pIGltcG9ydCBvbmJvYXJkX21hdHJpeAppbXBvcnQgdGltZQoKCndoaWxlIFRydWU6CiAgICBmb3Ig56+u5a2Q5L2N572uIGluIHJhbmdlKDAsIDEwLCAxKToKICAgICAgICBvbmJvYXJkX21hdHJpeC5maWxsKDApCiAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICAgICAgb25ib2FyZF9tYXRyaXgucGl4ZWwoaW50KOevruWtkOS9jee9riArIDApLCBpbnQoNyksIDEpCiAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICAgICAgb25ib2FyZF9tYXRyaXgucGl4ZWwoaW50KOevruWtkOS9jee9riArIDEpLCBpbnQoNyksIDEpCiAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICAgICAgb25ib2FyZF9tYXRyaXgucGl4ZWwoaW50KOevruWtkOS9jee9riArIDIpLCBpbnQoNyksIDEpCiAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICAgICAgdGltZS5zbGVlcCgwLjIpCg==</code>