Files
mixly3/boards/default/micropython_k210_mixgoai/examples/JCu40fMqKuxe.mix
2024-07-21 09:30:11 +08:00

1 line
6.6 KiB
XML

<xml version="Mixly 2.0 rc1" board="MixGo AI" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_block_notes" id="UZf,94B3YXTJlJ~agIiB" x="157" y="10"><field name="VALUE">WiFi_扫描附近WiFi热点信息,需要连接ESP-AT固件设备</field><next><block type="lcd_init" id="8,g!;P3:6J6/-bi1fyaa" inline="true"><value name="freq"><shadow type="math_number" id="rHAvhH8{-[|Z1!NVHZL,"><field name="NUM">15000000</field></shadow></value><value name="color"><shadow type="math_number" id="/}QhVqrz!#;aZW2u7k1g"><field name="NUM">0x0000</field></shadow></value><next><block type="network_init" id="|kU$YcbDVHJs[^LY}r:u"><value name="VAR"><shadow type="variables_get" id="Bu|t~xqa+z$~U;G}]/pF"><field name="VAR">nic</field></shadow></value><value name="RX"><shadow type="pins_digital_pin" id="K13_bgm`0/g=If}=4$U|"><field name="PIN">8</field></shadow></value><value name="TX"><shadow type="pins_digital_pin" id="ufX!jfV?,+Gbu,:jJY)a"><field name="PIN">9</field></shadow></value><next><block type="controls_whileUntil" id="PB@rtG9=;ZvkgJ~|,#xE"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="X:RZozk:2#E`/`9jD`(i"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="c5ZM1p((/gsFn-#|Gj3d"><field name="VAR">info</field><value name="VALUE"><block type="network_scan" id="`$LwQgKvxv3cAUV9lwZ{"><value name="VAR"><shadow type="variables_get" id="kt:BmJZmr+2%v[p.KV~H"><field name="VAR">nic</field></shadow></value></block></value><next><block type="variables_set" id=",mfxl3Fp@n3:`bnTG%6u"><field name="VAR">num</field><value name="VALUE"><block type="math_number" id="y1M-JLPeM|hH(l)[7)Q#"><field name="NUM">0</field></block></value><next><block type="controls_forEach" id="rjF3$2?aG+BEu9IEC5df"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="list_many_input" id="(]hR!6]¶:91-U+xroP"><field name="CONTENT">0,1,2,3</field></shadow><block type="variables_get" id="]DNBylAzdj4X_c#p]YhJ"><field name="VAR">info</field></block></value><value name="VAR"><shadow type="variables_get" id="E!CRI}Nz#_S*9W0d2be2"><field name="VAR">ap</field></shadow></value><statement name="DO"><block type="variables_set" id="0Ju6`T@czmW_UaxrDt{a"><field name="VAR">disp</field><value name="VALUE"><block type="text_format_noreturn" id="Xz`r-!S@^g=:#5*|sP(F"><mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation><value name="VAR"><shadow type="text" id="vFl!gbz|Bkg=!C{tRHjX"><field name="TEXT">SSID:{}, RSSI:{}</field></shadow></value><value name="ADD0"><block type="lists_get_index" id="3:[Bp@hV6J@W;sVqn,%|"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="~G%q;v^..s_5c@y871v}"><field name="VAR">mylist</field></shadow><block type="variables_get" id="^wE8F+Oi$r,p42.F/5,%"><field name="VAR">ap</field></block></value><value name="AT"><shadow type="math_number" id="VM#XV(QaL*vg%@vEk9nZ"><field name="NUM">1</field></shadow></value></block></value><value name="ADD1"><block type="lists_get_index" id="?%K7;#Htx1q8=yH!]H)w"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="~G%q;v^..s_5c@y871v}"><field name="VAR">mylist</field></shadow><block type="variables_get" id="_MP!2M9M-G7zZz3RqqB9"><field name="VAR">ap</field></block></value><value name="AT"><shadow type="math_number" id="{ku^ODgWpqkT#?9;:U25"><field name="NUM">2</field></shadow></value></block></value></block></value><next><block type="system_print" id="IynpOd:uue]??9Hr3JL="><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="-p8i3crGn=Hct8k:--O_"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="L[_Gh/(8YMDD,,Z5:axw"><field name="VAR">disp</field></block></value><next><block type="lcd_draw_string" id="{}WTTyNHAR3uU=K?O!WS" inline="true"><value name="x"><shadow type="math_number" id="2Q*LfXgBw7]h.=[^Xyo="><field name="NUM">0</field></shadow></value><value name="y"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="Y6O;@y;W/swq~uy}W7a0"><field name="NUM">0</field></shadow><block type="variables_get" id="n^K%A[H86eg0{^#10n3v"><field name="VAR">num</field></block></value><value name="text"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="yf+%T_FWQKD^9;MvSNE`"><field name="TEXT">MixPY</field></shadow><block type="variables_get" id=",!7~L.8dbmM1@ha4SU/!"><field name="VAR">disp</field></block></value><value name="color_T"><shadow type="math_number" id="4^5KpU%N{*W-@kNkx8WQ"><field name="NUM">0XFFFF</field></shadow></value><value name="color_S"><shadow type="math_number" id="${rivQ|i_]RR0*=,v__q"><field name="NUM">0X0000</field></shadow></value><next><block type="math_selfcalcu" id="J{(baZM%#*ITj$HCRc@Y"><field name="OP">ADD</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="}?ew/k/|*D%o=*|W1_vP"><field name="VAR">a</field></shadow><block type="variables_get" id="6}q=P{!,d7LqU||/q!61"><field name="VAR">num</field></block></value><value name="B"><shadow type="math_number" id="uiJUDD=o8.Q_%zXGEvc_"><field name="NUM">16</field></shadow></value><next><block type="controls_if" id="2mNOwj/ZM$Eã7zSxcR"><value name="IF0"><block type="logic_compare" id="(P-if-md3tuuuw70-H|j"><field name="OP">GT</field><value name="A"><block type="variables_get" id="U/A!ottqNqIOu-5iHW1g"><field name="VAR">num</field></block></value><value name="B"><block type="math_number" id="]1#eW|EOw_|..Lj5Rgwi"><field name="NUM">242</field></block></value></block></value><statement name="DO0"><block type="variables_set" id=":?|sdgDo0qIGQf|P@xSc"><field name="VAR">num</field><value name="VALUE"><block type="math_number" id="*|Qf[GPW(OBeo!/8i)wg"><field name="NUM">0</field></block></value><next><block type="controls_delay" id="%%@o5)I6+]pn(~1qHN^k"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="FrjkN!q]r^gVptv1j^?Q"><field name="NUM">1000</field></shadow></value><next><block type="lcd_clear" id="xcod)60_;0M::;yufLo4"><value name="color"><shadow type="math_number" id="YxeRHrq()YT#Y:KsO|(M"><field name="NUM">0x0000</field></shadow></value></block></next></block></next></block></statement><next><block type="controls_delay" id="ngz[4]QwS.NoGc8SCDG6"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="WWgH;sF=D;xrsk,V0.c5"><field name="NUM">200</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type="lcd_clear" id="}ZPhwnbq_aQi2O`.l]yE"><value name="color"><shadow type="math_number" id="^bP-E@4`SgEqy0Th:6jg"><field name="NUM">0x0000</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></xml>