Files
mixly3/boards/default/arduino_avr/examples/10-传感器/07-TCS230颜色识别传感器.mix
2024-07-19 10:16:00 +08:00

1 line
2.8 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="X3T/a@3SFdv+e/:u_Zh]" x="-31" y="114"><field name="VALUE">TCS230颜色识别传感器</field><next><block type="serial_begin" id="w05ZBH(!d4Nx+4O:o$k9"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="a7WN9/K57zKgz4d|D13v"><field name="NUM">9600</field></shadow></value><next><block type="tcs230_init" id="-g#h:Oqd/P0VJ.^2_ABe"><value name="tcs230_s0"><shadow type="pins_digital" id="Z0Z#(1q7;~J8jjx]O@C{"><field name="PIN">2</field></shadow></value><value name="tcs230_s1"><shadow type="pins_digital" id="%+=@v2m*=s[Ntpq5Ub3s"><field name="PIN">3</field></shadow></value><value name="tcs230_s2"><shadow type="pins_digital" id="J`kAhot4j`F^RUR|Y^}~"><field name="PIN">4</field></shadow></value><value name="tcs230_s3"><shadow type="pins_digital" id="C_/5te01|-;8h^4L?T:b"><field name="PIN">5</field></shadow></value><value name="tcs230_led"><shadow type="pins_digital" id="M2(SY~CK^%PB{*dECa;;"><field name="PIN">6</field></shadow></value><value name="tcs230_out"><shadow type="pins_digital" id="KG)=/[k9]K/NsLsZu!zo"><field name="PIN">7</field></shadow></value><next><block type="serial_print" id="z[:D_kpxZej=X{^j`znE"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id="Gm~L=|CDITGQOj-O~aNJ" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="6"></mutation><value name="ADD0"><block type="text" id="e31noB[U;~fRtbeYxBQA"><field name="TEXT">R:</field></block></value><value name="ADD1"><block type="tcs230_Get_RGB" id="gZ0?]:07W:b:aV):=;U*"><field name="tcs230_color">R</field></block></value><value name="ADD2"><block type="text" id="*ja;:jbuL+Iy|o-cB)aR"><field name="TEXT"> G:</field></block></value><value name="ADD3"><block type="tcs230_Get_RGB" id="NPwgZV!LF`.vf#[rgQm]"><field name="tcs230_color">G</field></block></value><value name="ADD4"><block type="text" id="^:d*B_llp/C%kyh*ZSF3"><field name="TEXT"> B:</field></block></value><value name="ADD5"><block type="tcs230_Get_RGB" id="Fz!;{Xq7dA:[=LGcDZ"><field name="tcs230_color">B</field></block></value></block></value><next><block type="serial_print" id="=I;3Pm~Eg*6qXJV4,/2?"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="5T-^yV5YE)zlcq|CXkSO"><field name="TEXT"></field></block></value><next><block type="controls_delay" id="5W^%zOB8]{bO;Y}X;Pc}"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="!(KWm2%%fVSF/QWyi|d|"><field name="NUM">500</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></xml>