Files
mixly3/boards/default/arduino_avr/examples/07-串口/01-串口交互.mix
2024-07-19 10:16:00 +08:00

1 line
4.0 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
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="5st)k?W=^aVnD=p@p+dd" x="-278" y="106"><field name="VALUE">串口交互\nD9连接红色LEDD10连接黄色LEDD11连接绿色LED。\n输入R,点亮红色LED输入Y点亮黄色LED输入G点亮绿色LED。</field><next><block type="serial_begin" id="R:2=0(.l/OsyYIFHH,~;"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="/$6|]rGt4z!]m#ybD|AT"><field name="NUM">9600</field></shadow></value><next><block type="variables_declare" id="pHZn*U]cX2909+[d2P5l"><field name="variables_type">global_variate</field><field name="VAR">Light</field><field name="TYPE">char</field><value name="VALUE"><block type="text_char" id="EO1L5CBxkoKHhGS_$WeE"><field name="TEXT"> </field></block></value><next><block type="controls_if" id="mq]k4.ip:/zur:$^jPY@"><value name="IF0"><block type="serial_available" id="tjg$7Z2kQKNga2n%rEUh"><field name="serial_select">Serial</field></block></value><statement name="DO0"><block type="variables_set" id="7m#Z%1,8jD9XMsiQuB[q"><field name="VAR">Light</field><value name="VALUE"><block type="serial_parseInt_Float" id="H#?#r97F3{@:HZ`{#Gc-"><field name="serial_select">Serial</field><field name="STAT">read</field></block></value></block></statement><next><block type="controls_switch_case" id="f8xtKvR+a~M(X4)MlL|R"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="3" else="1"></mutation><value name="IF0"><block type="variables_get" id="A}y;N@(U`.tJ.WY5;5_J"><field name="VAR">Light</field></block></value><value name="IF1"><block type="text_char" id="QO/P(0aDCuY5B{:g6h=m"><field name="TEXT">R</field></block></value><statement name="DO1"><block type="inout_digital_write2" id="LGhGXtLy5:VM6Mq4)eW,"><value name="PIN"><shadow type="pins_digital" id="Q#}cG9H9^%h9N0zla94z"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="eJ;Iw$Egfx?x8m@W3jAF"><field name="BOOL">HIGH</field></shadow></value></block></statement><value name="IF2"><block type="text_char" id="pl_5H8MWV.gfa/G:0S|D"><field name="TEXT">Y</field></block></value><statement name="DO2"><block type="inout_digital_write2" id="7KQ%vY?1)zFvXsw[N?F="><value name="PIN"><shadow type="pins_digital" id="(RHjuj!rx5bdS0P$DwU4"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="lsL1?}u!c_jh_]3jWEo`"><field name="BOOL">HIGH</field></shadow></value></block></statement><value name="IF3"><block type="text_char" id="!J!qpR)K~DNLXEl{9HAH"><field name="TEXT">G</field></block></value><statement name="DO3"><block type="inout_digital_write2" id="F:X3ys=:#2I;BZ5{,%{U"><value name="PIN"><shadow type="pins_digital" id="=7:5+TD_L!%)eck2rhU="><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="5;3#h6tCoOMq/KRHidoe"><field name="BOOL">HIGH</field></shadow></value></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="-zUqd1sp9wb.!%fp=qz^"><value name="PIN"><shadow type="pins_digital" id="7{*.{#krgZ*4Up#bV]jE"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="8+]3iOCV5q{$K#f``6N{"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="Ux9z]MZ%l5Nh=0zx8c(8"><value name="PIN"><shadow type="pins_digital" id="`o4FiYOOFA`f5|Bfna.s"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="E9()vIzymz_%;67JmVYd"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="9|EWbdXO:B}Cf=7~H6*m"><value name="PIN"><shadow type="pins_digital" id="Tbl@T3!klqbbdrCkvxLk"><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="uq5@fe^UUGZ/Az63CuTR"><field name="BOOL">LOW</field></shadow></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></xml>