Files
mixly3/boards/default/arduino_avr/examples/06-逻辑/02-逻辑运算符.mix
2024-07-19 10:16:00 +08:00

1 line
1.9 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="+lM#H;=X)K9uC#yWs?F9" x="8" y="23"><field name="VALUE">光控按钮灯\n\nA0连接光线传感器D4连接LEDD3连接按钮\n当A0&lt;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>