1 line
7.2 KiB
XML
1 line
7.2 KiB
XML
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="F5m/Vi.r:?+qg^fxFLhh" x="0" y="0"><field name="VALUE">IIC通信:当接收到YES时点亮D13,当打开NO时熄灭D13\n\nUNO1(A4)-UNO2(A4)\nUNO1(A5)-UNO2(A5)\nUNO1(GND)-UNO2(GND)</field></block><block type="base_setup" id="EOpEOnrKeVh@louS=wp}" x="0" y="198"><statement name="DO"><block type="i2c_master_Init" id="SUd=:K0#_Q6:;HMAcKJx"><next><block type="variables_declare" id="7=G8:dBM4l(3G}I$%T(f"><field name="variables_type">global_variate</field><field name="VAR">transmitString</field><field name="TYPE">String</field><value name="VALUE"><block type="text" id=")]}ou~u3l;;T}?9~]pi%"><field name="TEXT"></field></block></value></block></next></block></statement></block><block type="i2c_begin_end_transmission" id="ka;eDTH6q_2XW)j.s-k." x="0" y="315"><value name="i2c_address"><shadow type="math_number" id="-91tz4Hg$]7S$FcXv#F$"><field name="NUM">4</field></shadow></value><statement name="transmission_data"><block type="i2c_write" id="#!RUh!d!(NpcOhskG-I~"><value name="i2c_write_data"><shadow type="text" id="Jp=OcX_Z`!$^CCY7)_.r"><field name="TEXT">ON</field></shadow></value></block></statement><next><block type="procedures_callnoreturn" id="qxLPi`wV+NklNA4i*G;_"><mutation xmlns="http://www.w3.org/1999/xhtml" name="request"></mutation><next><block type="controls_delay" id="]Lv9/rSSnsQ$Ut.bhF4v"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="AF3*2es;zCHJ{Y}A|;B+"><field name="NUM">1000</field></shadow></value><next><block type="i2c_begin_end_transmission" id="nbQ)1R?jVVhWpQayH(_b"><value name="i2c_address"><shadow type="math_number" id="kt;wO#Yo?aDiZsvVQ4dI"><field name="NUM">4</field></shadow></value><statement name="transmission_data"><block type="i2c_write" id="kUxNg5mX97G4igb82%Ai"><value name="i2c_write_data"><shadow type="text" id="[UHK/68=wpcvb+@K/=nV"><field name="TEXT">OFF</field></shadow></value></block></statement><next><block type="procedures_callnoreturn" id="c/1X/#)^VMKFZ}ZA^6m:"><mutation xmlns="http://www.w3.org/1999/xhtml" name="request"></mutation><next><block type="controls_delay" id="XuHLoVu6ogmXwE//{vHu"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="4e/RIRW2o3ApC/AT6eyr"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="91:b#iSwLrEBeysn|~By" x="0" y="644"><field name="NAME">request</field><statement name="STACK"><block type="variables_set" id="5BeowqP_mUB1cuK[PpkO"><field name="VAR">transmitString</field><value name="VALUE"><block type="text" id=":28lJAGDDQGtvr!*0+_b"><field name="TEXT"></field></block></value><next><block type="controls_delay" id="Er6+1]E3#AaGIi_#7Jdw"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="w%Hr1Qo-#Ssv1?J4lb1U"><field name="NUM">10</field></shadow></value><next><block type="i2c_master_reader" id="FI-LAui5LlnR3.LbemLv"><value name="device"><shadow type="math_number" id="yl697_[xEp]n9q$2pN`p"><field name="NUM">4</field></shadow></value><value name="bytes"><shadow type="math_number" id="mOetn~AO=),Mknzml=Ah"><field name="NUM">3</field></shadow></value><next><block type="controls_whileUntil" id="2JrVQk9jd^US47Ml.NMP"><field name="MODE">WHILE</field><value name="BOOL"><shadow xmlns="http://www.w3.org/1999/xhtml" type="logic_boolean" id="xvglTx$~+0b{U]ReYwOv"><field name="BOOL">TRUE</field></shadow><block type="i2c_available" id="oJ(7gb(t0(Qugy2[ny]8"></block></value><statement name="DO"><block type="variables_operation" id="jg}!d5AnQ?bh%QPia-.C"><field name="type">+</field><value name="variables"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="h3Xa-{}6Z+n#wF!U:RaI"><field name="NUM">item</field></shadow><block type="variables_get" id="`:V5q(U_G9_V3o)(]2#M"><field name="VAR">transmitString</field></block></value><value name="data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="Db`Ebvsg(yio)*tgs1Fx"><field name="NUM">1</field></shadow><block type="variables_change" id="sqD|,B|LA$VF7E0}1jiX"><field name="OP">char</field><value name="MYVALUE"><block type="i2c_read" id="GRxla:u(?;K?{zin;d^)"></block></value></block></value></block></statement><next><block type="controls_if" id="H+Z1L3jS?Zi,4e0N7SkV"><value name="IF0"><block type="logic_compare" id="P=Cu^N^7(3(|3.u*`R?9"><field name="OP">EQ</field><value name="A"><block type="text_char_at" id="|y!P-wLFp)4t2a1`K]L0"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="m;m!RTCcJZw$X,k`0zH6"><field name="TEXT">hello</field></shadow><block type="variables_get" id="5!KG?rwv3l,J6mo#*k,/"><field name="VAR">transmitString</field></block></value><value name="AT"><shadow type="math_number" id="B;?E)!w!6jV#X5E7tcK+"><field name="NUM">0</field></shadow></value></block></value><value name="B"><block type="text_char" id="G{5W=(qxgqd4r|BEEIw8"><field name="TEXT">N</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="07EV#elLmJ3PU!k~(H3x"><field name="VAR">transmitString</field><value name="VALUE"><block type="substring" id="r^c,r7?hWnawHT*ixbTY"><value name="name"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="boF;hw$].xVrujw73bUB"><field name="TEXT">substring</field></shadow><block type="variables_get" id="qoKkXe|rkjHiAJC!gW7P"><field name="VAR">transmitString</field></block></value><value name="Start"><shadow type="math_number" id="H44U5e+9w!4P`KLwpp8}"><field name="NUM">0</field></shadow></value><value name="end"><shadow type="math_number" id="XXoDdrvI(#R{Cjdxj;g0"><field name="NUM">2</field></shadow></value></block></value></block></statement><next><block type="serial_println" id="6-(2_@h$zqDN^eJOb/S*"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="variables_get" id="nS]49n#z~)::~k3xNCo8"><field name="VAR">transmitString</field></block></value><next><block type="controls_if" id="!)-q_#,e;;+v#uYfrjRL"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="lL3~Pa{=K+)4+u?4X$0T"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="uNixJh?Ju)Hr!g=pNSpu"><field name="VAR">transmitString</field></block></value><value name="B"><block type="text" id="D50zL:e**1=%NY`S3DBu"><field name="TEXT">OK</field></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="(if~JQ5TIOdGST@#sKVC"><value name="PIN"><shadow type="pins_digital" id=".O3uss]o^+yJwBlX{1F9"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="!2-(v)5u;mfqaV(fBcv!"><field name="BOOL">HIGH</field></shadow></value></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="KT6Tr.xI~{bOg{sTy[,B"><value name="PIN"><shadow type="pins_digital" id="!j3j.{)BKi@(.REm[Y+}"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="-Q7TIAk_VylWjW#1Ob4-"><field name="BOOL">LOW</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml> |