1 line
1.9 KiB
XML
1 line
1.9 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="+lM#H;=X)K9uC#yWs?F9" x="8" y="23"><field name="VALUE">光控按钮灯\n\nA0连接光线传感器,D4连接LED,D3连接按钮\n当A0<50(光线暗)并按钮被被下时,LED为高电平\n否则,LED为低电电平</field><next><block type="controls_if" id="xG$SH4CF?ee^:R-@9]Dr"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_operation" id="syD`tfE(n0{T/+xR^6v("><field name="OP">AND</field><value name="A"><block type="logic_compare" id="vF0M?@Da)(V|[J)L$-k3"><field name="OP">LT</field><value name="A"><block type="inout_analog_read" id="b4pj`qmJqYPLrZTey$)s"><value name="PIN"><shadow type="pins_analog" id="P^Qt~4fY$(q9nP4MeWi)"><field name="PIN">A0</field></shadow></value></block></value><value name="B"><block type="math_number" id="D(p=qwAU/kjb[$]($(xK"><field name="NUM">50</field></block></value></block></value><value name="B"><block type="inout_digital_read2" id="VqV;r94(Q~GnjyO_wBj4"><value name="PIN"><shadow type="pins_digital" id="4WzAu%N5tllOcvPe].yO"><field name="PIN">3</field></shadow></value></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="fw!+CMMCro|[@NrieoLr"><value name="PIN"><shadow type="pins_digital" id="aT4Zk)4wHHu}C@)dZI.P"><field name="PIN">4</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="}YD3($hi+)^u$TL3UG7T"><field name="BOOL">HIGH</field></shadow></value></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="KqsF@z~[@tMVcaS2;A~k"><value name="PIN"><shadow type="pins_digital" id="3O{SoVAC!I(OEBGGB~{A"><field name="PIN">4</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="}Bbr?Laxs+IRZT.*D)Uu"><field name="BOOL">LOW</field></shadow></value></block></statement></block></next></block></xml> |