1 line
2.4 KiB
XML
1 line
2.4 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="5st)k?W=^aVnD=p@p+dd" x="0" y="0"><field name="VALUE">串口交互\nD13接LED。\n输入1,开灯;输入0,关灯。</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="ck%GjEk7ki*jfddUM;N("><field name="TEXT">0</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="2"></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="P[g91fuCahV-=%zSmwc!"><field name="TEXT">1</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">13</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="PfsN+G|iu39vv2~;{4Z4"><field name="TEXT">0</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">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="lsL1?}u!c_jh_]3jWEo`"><field name="BOOL">LOW</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></xml> |