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

1 line
3.2 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="X?.R9Le#6jE0Et7kwFrR" x="-1090" y="-43"><statement name="DO"><block type="spi_begin_master" id="a$@xN|94vZPRh,_cJqz|"><value name="spi_slave_pin"><shadow type="pins_digital" id="MD.by6kf(jw(-(Xaz8z8"><field name="PIN">10</field></shadow></value></block></statement></block><block type="spi_transfer_Init" id="@8_f}Q_j9Ft)iXR[_yN!" x="-1083" y="55"><value name="slave_pin"><shadow type="pins_digital" id="0ND4r;]]PY$^raC,HXgb"><field name="PIN">10</field></shadow></value><statement name="transfer_data"><block type="spi_transfer_1" id="tSdJ+l[X/B/8WOG)Lu-)"><value name="transfer_data"><shadow type="text_char" id=")z|HmMljZ%v{gF.J9s5s"><field name="TEXT"> </field></shadow></value></block></statement><next><block type="spi_transfer_Init" id="*Py~kL42yIITbS~VY4B."><value name="slave_pin"><shadow type="pins_digital" id="b!tKmj+H^f9YJq;Cllv`"><field name="PIN">10</field></shadow></value><statement name="transfer_data"><block type="controls_for" id="f7L!sM#NOF;r9R:G?c!N"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="R[lgDDH7H?w:8-sU|/7S"><field name="NUM">0</field></shadow></value><value name="TO"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="$hcATt=5T)gp8jJ3Hf~e"><field name="NUM">10</field></shadow><block type="math_arithmetic" id="BJfv/+C8[SS?-ZKvezHh"><field name="OP">MINUS</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="jObVO~0dTt_c{3?y0PJM"><field name="NUM">1</field></shadow><block type="text_length" id="DT*y6q1U3Jb6T1J0Dw,J"><value name="VAR"><shadow type="text" id="784^O_-nj*)tg_[8Z*Ag"><field name="TEXT">hello!</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="JLW%2Q2bUn+VfOyyv+hg"><field name="NUM">1</field></shadow></value></block></value><value name="STEP"><shadow type="math_number" id="_AG?HFM0@iFs_VT;8xSZ"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_write" id="^TyseYp}G;AV!f57m[Z1"><field name="serial_select">Serial</field><value name="CONTENT"><block type="spi_transfer_2" id="~u(4e+Zc1]R@WCy!mme,"><value name="transfer_data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text_char" id=".wI^{L-M~9KV7x1,_*(0"><field name="TEXT">A</field></shadow><block type="text_char_at" id="_7a0[wk3FM%)4rLi$C*="><value name="VAR"><shadow type="text" id="@pqybzUk}HG0k!(q5R:6"><field name="TEXT">hello!</field></shadow></value><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="Bi1lx(kh:zyF;$,bl!xT"><field name="NUM">0</field></shadow><block type="variables_get" id="D6!7~ioZ3SHjfsSIa*;s"><field name="VAR">i</field></block></value></block></value></block></value></block></statement><next><block type="serial_println" id="m)NjLnJ{Er6Z{l-ra*o3"><field name="serial_select">Serial</field><field name="new_line">println</field></block></next></block></statement><next><block type="controls_delay" id="QWx3q]5YMwqF~Py!T@PB"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="o6Di;g0K]})L5TkoI{z|"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></xml>