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

1 line
4.3 KiB
XML

<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="#y4@NI?Dz$bOdas(dGNr" x="-28" y="23"><statement name="DO"><block type="variables_declare" id="5t9g^9OqVx|MMEcf8DFM"><field name="variables_type">global_variate</field><field name="VAR">data</field><field name="TYPE">String</field><value name="VALUE"><block type="text" id="`eEL~(0|]*TA`GVKgBuw"><field name="TEXT"> </field></block></value><next><block type="variables_declare" id="CR~@7:#e_zJfgC{]%AJs"><field name="variables_type">global_variate</field><field name="VAR">i</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="KNCIEBkSMV8rcj#GEc._"><field name="NUM">0</field></block></value><next><block type="variables_declare" id="IiNYKT0VS1:`dT]L=mL0"><field name="variables_type">global_variate</field><field name="VAR">data1</field><field name="TYPE">byte</field><value name="VALUE"><block type="variables_get" id="|`Pz)Om!|Lxop#w;;=FN"><field name="VAR">SPDR</field></block></value><next><block type="spi_begin_slave" id="-YLo65T6RzzPYipnT){H"></block></next></block></next></block></next></block></statement></block><block type="spi_slave_interrupt" id="mNc34mjakX}aXdaFwYOs" x="-26" y="189"><value name="slave_interrupt_input"><block type="variables_get" id="faHP*gx/u=@,Nq%-7S]s"><field name="VAR">SPDR</field></block></value><statement name="slave_interrupt_data"><block type="variables_set" id="OO{=kNv+Isp^Wq)hw4u`"><field name="VAR">SPDR</field><value name="VALUE"><block type="text_char_at" id="Oz3eJI-^P-0,k6/%]B5y"><value name="VAR"><shadow type="text" id="oRJ%?oEr4`+K:`qN5NnM"><field name="TEXT">hello</field></shadow></value><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="WAZJkou0n$;=Nhr{Q4,:"><field name="NUM">0</field></shadow><block type="variables_get" id="C!V}-J[hhm%D|?e$V8:K"><field name="VAR">i</field></block></value></block></value><next><block type="variables_operation" id="c}qG5Zp*k*kQ+H|wV1Od"><field name="type">+</field><value name="variables"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="{skzLW+$:{jOm=:f[aCm"><field name="NUM">item</field></shadow><block type="variables_get" id="aEpmIW;gZD;_*23}8mG8"><field name="VAR">i</field></block></value><value name="data"><shadow type="math_number" id="B,GDn?+jb=Eag?2t_E)x"><field name="NUM">1</field></shadow></value><next><block type="variables_operation" id="6G/g(V,F+!zXp39E*3cD"><field name="type">+</field><value name="variables"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5BK.o#%TQxI8j5j)jjOx"><field name="NUM">item</field></shadow><block type="variables_get" id="=tr$?Ue##[1Hu9vpa7jm"><field name="VAR">data</field></block></value><value name="data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="0k3m{#,00Tx/g.aME9V."><field name="NUM">1</field></shadow><block type="ascii_to_char" id="}0U@.CCKy?J]nGjfu~8K"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="N_m|#xqiVFr.CxJH=TM_"><field name="NUM">223</field></shadow><block type="variables_get" id="}R#xHd^8ZDQhkor(}L%9"><field name="VAR">SPDR</field></block></value></block></value><next><block type="controls_if" id="DHN*y,[iYTLS@v3#auk0"><value name="IF0"><block type="logic_compare" id="1/XHY:AKtT1;UyGdseXw"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="7*}|F3I+%d^N^_F03v5p"><field name="VAR">data1</field></block></value><value name="B"><block type="text_char" id="NUK4[n%(=9u_;6j]a,SS"><field name="TEXT">!</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="#x|l^(Z)=/Ha2)#sn4u$"><field name="VAR">i</field><value name="VALUE"><block type="math_number" id="r5PD!k`Nshz~_/9#dp`i"><field name="NUM">0</field></block></value><next><block type="serial_println" id="YQv?91d?!%0iU*(m3E+P"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="variables_get" id="fL;1qQCITBc{]fo6iszg"><field name="VAR">data</field></block></value><next><block type="variables_set" id="JX6Y[Ii7LrJPA8/P`D9u"><field name="VAR">data</field><value name="VALUE"><block type="text" id="Ni4Qp_[r*$meqG5,Iiuy"><field name="TEXT"> </field></block></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement></block></xml>