<xml xmlns="https://bipes.net.br">
  <workspace>
    <field name="DEVICE">RPI_Pico</field>
    <field name="TIMESTAMP">1769394734190</field>
    <freeboard><![CDATA[{"version":1,"allow_edit":true,"plugins":[],"panes":[],"datasources":[],"columns":3}]]></freeboard>
    <databoard><![CDATA[{"currentWorkspace":"kvfgejtdtlhg0wfqod9","workspace:kvfgejtdtlhg0wfqod9":[]}]]></databoard> 
  </workspace>
  <block type="controls_whileUntil" id="W}8L)c{|,@b|abLJvv%o" x="-1137" y="-688">
    <field name="MODE">WHILE</field>
    <value name="BOOL">
      <block type="logic_boolean" id="jshQ9w*OeYk$|-oB%+w3">
        <field name="BOOL">TRUE</field>
      </block>
    </value>
    <statement name="DO">
      <block type="controls_if" id="+2Rq/.Kl(96{bPMG}GOb">
        <value name="IF0">
          <block type="logic_operation" id="Ai?4ob$,xb/nG2Vn(Vlu">
            <field name="OP">OR</field>
            <value name="A">
              <block type="logic_negate" id="3r|[epx|wK~27bAv7;QN">
                <value name="BOOL">
                  <block type="gpio_get" id="-hs8-6kbnj1rRD5|#HB:">
                    <comment pinned="true" h="80" w="160">火焰传感器没触发时高电平，所以用not</comment>
                    <value name="pin">
                      <shadow type="pinout" id="^NrmA$^_=Zi$#bash`Ri">
                        <field name="DEVICE">RPI_Pico</field>
                        <field name="PIN">27</field>
                      </shadow>
                    </value>
                    <value name="pullup">
                      <shadow type="logic_boolean" id="l*Ndg:OdZ/zN_jA$qYRX">
                        <field name="BOOL">TRUE</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="logic_negate" id="#{I?0g5[DdaRkmys)e#6">
                <value name="BOOL">
                  <block type="gpio_get" id="[t#:w#%eup;,eHa+Wll7">
                    <value name="pin">
                      <shadow type="pinout" id="MyeU#G$Zx3*7:AyO4qzc">
                        <field name="DEVICE">RPI_Pico</field>
                        <field name="PIN">8</field>
                      </shadow>
                    </value>
                    <value name="pullup">
                      <shadow type="logic_boolean" id="ndWdVhnuZZr{hwt,WlBJ">
                        <field name="BOOL">FALSE</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="text_print" id="MU]ot,wMRYlN~VXZq}nu">
            <value name="TEXT">
              <shadow type="text" id=":^/~(,sVu7K6sRw$]%_Z">
                <field name="TEXT">触发火焰报警</field>
              </shadow>
            </value>
            <next>
              <block type="pwm" id="8z.?tX@U?C#/Nzk+XGCe">
                <field name="ID">9</field>
                <value name="pin">
                  <shadow type="pinout" id="_84X2JBGN6LCbK6S!PIf">
                    <field name="DEVICE">RPI_Pico</field>
                    <field name="PIN">9</field>
                  </shadow>
                </value>
                <value name="frequency">
                  <shadow type="math_number" id="O/sR}ZIF0Tq)yYnwFS`3">
                    <field name="NUM">1000</field>
                  </shadow>
                </value>
                <value name="duty">
                  <shadow type="math_number" id="dVj,%h7sUF*U%MDe4:(L">
                    <field name="NUM">800</field>
                  </shadow>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="controls_if" id="E6d6ye]%|T2!1p,SfBS+">
            <value name="IF0">
              <block type="logic_negate" id="XAno?,mek2XhO.w7FS=a">
                <value name="BOOL">
                  <block type="gpio_get" id="*V0fpV87[NtG}?IY1DGI">
                    <value name="pin">
                      <shadow type="pinout" id="-L@+mKWeuJ*ZH6l9W~$m">
                        <field name="DEVICE">RPI_Pico</field>
                        <field name="PIN">5</field>
                      </shadow>
                    </value>
                    <value name="pullup">
                      <shadow type="logic_boolean" id="ingYi)ATn`M5ro|p)Iub">
                        <field name="BOOL">TRUE</field>
                      </shadow>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="pwm" id="Z?-*39ItHm37EfYo[vq:">
                <field name="ID">9</field>
                <value name="pin">
                  <shadow type="pinout" id="^/}Cc^h^LIv@z%:ElxW*">
                    <field name="DEVICE">RPI_Pico</field>
                    <field name="PIN">9</field>
                  </shadow>
                </value>
                <value name="frequency">
                  <shadow type="math_number" id="cMMUT1YO@]qe9cySZ_0i">
                    <field name="NUM">1000</field>
                  </shadow>
                </value>
                <value name="duty">
                  <shadow type="math_number" id="I}!hjW9t(M~8hZr.q_7%">
                    <field name="NUM">0</field>
                  </shadow>
                </value>
              </block>
            </statement>
            <next>
              <block type="delay" id="uWAA:C`}ouZ].$0wPpSd">
                <field name="SCALE">sleep_ms</field>
                <value name="TIME">
                  <shadow type="math_number" id=",21Rl|;ul-KV7EC`42}t">
                    <field name="NUM">200</field>
                  </shadow>
                </value>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>