Files
mixly3/boards/default/arduino_avr/examples/08-通信/02-IICSlave_字符.mix
2024-07-19 10:16:00 +08:00

1 line
5.6 KiB
XML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="+a-mg*_I8e5#N-NMJFFH" x="0" y="0"><field name="VALUE">IIC通信从机接收到字符a、b、c分别点亮D13、D12、D11</field></block><block type="base_setup" id=")xG6MD.Nq^E!#+Šh{U" x="0" y="65"><statement name="DO"><block type="serial_begin" id="f^jI!;z]]tz)c9@60Ka1"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="]@VboF5.ovW=1IQlt|+t"><field name="NUM">9600</field></shadow></value><next><block type="factory_notes" id="iKCeVgzPh{q`45b!f}xR"><field name="VALUE">字符变量赋空格为初始值</field><next><block type="variables_declare" id="[[*KR@mqgJ@)XT7}W*U1"><field name="variables_type">global_variate</field><field name="VAR">C</field><field name="TYPE">char</field><value name="VALUE"><block type="text_char" id="GosI8Vv59FiVHyd!,e~i"><field name="TEXT"> </field></block></value><next><block type="i2c_slave_Init" id="Lr6in-I(QxGZn6fiYq`C"><value name="i2c_address"><shadow type="math_number" id="1_(+_qNwnOVM+dwMCyUo"><field name="NUM">4</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="i2c_slave_onreceive" id="wcZ8O[KMZjbG*fExLpq`" x="0" y="267"><statement name="DO"><block type="controls_whileUntil" id="QnngxCf7l8s^u6FV9HbQ"><field name="MODE">WHILE</field><value name="BOOL"><shadow xmlns="http://www.w3.org/1999/xhtml" type="logic_boolean" id="zes_4^e$)^$tlV3q/PeE"><field name="BOOL">TRUE</field></shadow><block type="i2c_available" id="?|Go?P2#Gf;SdHFRu1fe"></block></value><statement name="DO"><block type="variables_set" id="UIHGHCh1Tz%1]|7vpNeG"><field name="VAR">C</field><value name="VALUE"><block type="i2c_read" id="L82Z)Q:Z/g:e+L7w1??M"></block></value><next><block type="serial_println" id="cxf*#Ao~`!{.ZW%,gx~n"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="variables_get" id="yOK]5_(q%ut=DaxeReDb"><field name="VAR">C</field></block></value></block></next></block></statement><next><block type="controls_switch_case" id=",5_Y=C}FZBX)q~%t.TRU"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="3"></mutation><value name="IF0"><block type="variables_get" id="k3|5)h{G1*s:|F:(QR.x"><field name="VAR">C</field></block></value><value name="IF1"><block type="text_char" id="n6kqyqV:?8i*Ww1`RGz$"><field name="TEXT">a</field></block></value><statement name="DO1"><block type="inout_digital_write2" id="AS9mMAb^z.{+qi;o).Ii"><value name="PIN"><shadow type="pins_digital" id="j=,:wB46dhgG*7c6b6l."><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="8SK,^E]qW9Q7Csr#2l49"><field name="BOOL">HIGH</field></shadow></value><next><block type="inout_digital_write2" id="8Yx:.P8$Xso=2s[*l+Wa"><value name="PIN"><shadow type="pins_digital" id="*RxB!sV3{d?o|yMW|a7F"><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="0e)VR{G#;5tdGI./Csme"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="xlsREFb]_%qtl7$n`Ogf"><value name="PIN"><shadow type="pins_digital" id="ym{x@1[5!s:DMbXUng=c"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="o{;r.8gslHN|xMaw1J4*"><field name="BOOL">LOW</field></shadow></value></block></next></block></next></block></statement><value name="IF2"><block type="text_char" id="dlQe0aYFq{-=/p?V!@=3"><field name="TEXT">b</field></block></value><statement name="DO2"><block type="inout_digital_write2" id="4bhUreQPoU96pYn{vErH"><value name="PIN"><shadow type="pins_digital" id="eZto-YnJYy)=|!mQ^IVk"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="w:RvpV(qSi38Sj`g=b2P"><field name="BOOL">HIGH</field></shadow></value><next><block type="inout_digital_write2" id="q*dnV:O!8O_IO@be*LX4"><value name="PIN"><shadow type="pins_digital" id=":}(yc*`PuwB]dy0{H=+N"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="S%H(B+1xG8okVSha.(y3"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="B}VhC$rm}uj1g?qD{5}P"><value name="PIN"><shadow type="pins_digital" id="PXZvMwqwOi(8dBXErH4-"><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="eD07/YKCVwK`_)v-N+a]"><field name="BOOL">LOW</field></shadow></value></block></next></block></next></block></statement><value name="IF3"><block type="text_char" id="TFC3Q4#hNxGjX85ILYWH"><field name="TEXT">c</field></block></value><statement name="DO3"><block type="inout_digital_write2" id="4*,Z4T@0Zfh)16eJkq/Q"><value name="PIN"><shadow type="pins_digital" id="jklK:F(KQz[T?3-qGG+s"><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="g3a?@ufFPDSeNbBmLt_R"><field name="BOOL">HIGH</field></shadow></value><next><block type="inout_digital_write2" id=")RQHr),*N+R.%ir3jSBJ"><value name="PIN"><shadow type="pins_digital" id="{*Q)sYDhNyJc9jrBBRQ!"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="/2~+}1CQzSRn-tUl;9Fq"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="wxWN(~!X!!#NFI!VM01%"><value name="PIN"><shadow type="pins_digital" id="gPo]MHZ}D_[(_jyUDNAe"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="ltA:Y0LV;j-VD|q|p[^v"><field name="BOOL">LOW</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block></xml>