<xml xmlns="https://bipes.net.br">
  <workspace>
    <field name="DEVICE">RPI_Pico</field>
    <field name="TIMESTAMP">1769673521170</field>
    <freeboard><![CDATA[]]></freeboard>
    <databoard><![CDATA[]]></databoard> 
  </workspace>
  <variables>
    <variable id="obHQKZciX|0R|I3+A)FS">red</variable>
    <variable id="94`L6N{,]xRDlSo6#R7R">ir</variable>
    <variable id="Xmgxidj`Yxm7iK`R8D]9">har</variable>
  </variables>
  <block type="tm1637_init" id="ajB2iJfOLHQyy+H,f6Rw" x="-363" y="-488">
    <value name="clk">
      <shadow type="pinout" id="0GQ9*(715Gl,{Wh$!oqK">
        <field name="DEVICE">RPI_Pico</field>
        <field name="PIN">7</field>
      </shadow>
    </value>
    <value name="dio">
      <shadow type="pinout" id="(Obq*w)L`rtjzajtM9IG">
        <field name="DEVICE">RPI_Pico</field>
        <field name="PIN">8</field>
      </shadow>
    </value>
    <next>
      <block type="max30100_init" id="x^!FhkN^+4V!L{ca%[lv">
        <value name="i2c">
          <shadow type="math_number" id="Yh,5Ns]|Yz1f._h2d+Ww">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="scl">
          <shadow type="pinout" id="$-PdXCBk~C,8T;~Z{4eS">
            <field name="DEVICE">RPI_Pico</field>
            <field name="PIN">5</field>
          </shadow>
        </value>
        <value name="sda">
          <shadow type="pinout" id="k6)|b~?(lbs|BCZS.haH">
            <field name="DEVICE">RPI_Pico</field>
            <field name="PIN">4</field>
          </shadow>
        </value>
        <next>
          <block type="controls_whileUntil" id="Y_|^-7h$g#z=,?fa)Xvn">
            <field name="MODE">WHILE</field>
            <value name="BOOL">
              <block type="logic_boolean" id="-F-t^IL4m#1`b3zluvG=">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
            <statement name="DO">
              <block type="max30100_read" id="V$R~rJT#.BDU%~LT%)k#">
                <next>
                  <block type="variables_set" id="_Dhx@M#u0uL$a,)Xbx{n">
                    <field name="VAR" id="obHQKZciX|0R|I3+A)FS">red</field>
                    <value name="VALUE">
                      <block type="max30100_red" id="y?|:icU]T,+pl3=}$CC_"></block>
                    </value>
                    <next>
                      <block type="variables_set" id="cAKITdf(UlAD;hdai*,;">
                        <field name="VAR" id="94`L6N{,]xRDlSo6#R7R">ir</field>
                        <value name="VALUE">
                          <block type="max30100_ir" id="Hhwk2AQURtfXmG-R,mNt"></block>
                        </value>
                        <next>
                          <block type="controls_if" id="dz7ogSRFMa9o@.ih)hKP">
                            <value name="IF0">
                              <block type="variables_get" id="P2*`Y0ZF{)hi`K%BJX79">
                                <field name="VAR" id="94`L6N{,]xRDlSo6#R7R">ir</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="p?Jr#S(+AxtrY[3Sa.7y">
                                <field name="VAR" id="Xmgxidj`Yxm7iK`R8D]9">har</field>
                                <value name="VALUE">
                                  <block type="math_arithmetic" id="YOr-QJw}{#0B*P73`V9#">
                                    <field name="OP">MINUS</field>
                                    <value name="A">
                                      <shadow type="math_number" id="A,WjW5pE5^7cpw?D,Mb`">
                                        <field name="NUM">100</field>
                                      </shadow>
                                    </value>
                                    <value name="B">
                                      <shadow xmlns="https://bipes.net.br" type="math_number" id="j.j4^)nA-?*G5]i~5fM(">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_arithmetic" id=":SiMP{(|f0@hO:ZgHctD">
                                        <field name="OP">MULTIPLY</field>
                                        <value name="A">
                                          <shadow type="math_number" id="W)30GCT[*p~hH75nK7L!">
                                            <field name="NUM">25</field>
                                          </shadow>
                                        </value>
                                        <value name="B">
                                          <shadow xmlns="https://bipes.net.br" type="math_number" id="I,r,Dq|z!*stEP}BUDT2">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="math_arithmetic" id="lB8!_bZEYYJ:*60v|J#;">
                                            <field name="OP">DIVIDE</field>
                                            <value name="A">
                                              <shadow xmlns="https://bipes.net.br" type="math_number" id="F2(*^t{ly5AJa|$M8$=9">
                                                <field name="NUM">0</field>
                                              </shadow>
                                              <block type="variables_get" id="HDrbD7krqh+1Q(W@E6f%">
                                                <field name="VAR" id="obHQKZciX|0R|I3+A)FS">red</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow xmlns="https://bipes.net.br" type="math_number" id="EVRr/$/p.Ka)9|:`[Jfv">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="u=x%m2{s[JW07ftXc([O">
                                                <field name="VAR" id="94`L6N{,]xRDlSo6#R7R">ir</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="tm1637_clear" id="E|Ro8L)h._0fsmf3ouRN">
                                    <next>
                                      <block type="tm1637_write_text" id="eY|gTZv+~iKuK;6h.*nO">
                                        <value name="text">
                                          <shadow xmlns="https://bipes.net.br" type="text" id="q8caI.|RAJkB=qLhNo=h">
                                            <field name="TEXT">1324</field>
                                          </shadow>
                                          <block type="text_to_str" id="6a3%1o1-3a-RY11C)0hs">
                                            <field name="VAR">to str</field>
                                            <value name="var">
                                              <block type="var_to_int" id="M/wqHxes~|nk)V{.Y~:_">
                                                <field name="VAR">to int</field>
                                                <value name="var">
                                                  <block type="variables_get" id="$|8~sk.-$dpai+y3ALU`">
                                                    <field name="VAR" id="Xmgxidj`Yxm7iK`R8D]9">har</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="controls_if" id="BhAncn#{([Ka}uD:@ZuQ">
                                            <value name="IF0">
                                              <block type="logic_compare" id="dJ7KIybIV-t,f4h_u:ub">
                                                <field name="OP">LT</field>
                                                <value name="A">
                                                  <block type="variables_get" id="*Pd+Xig[Z!L]n_aiLwIQ">
                                                    <field name="VAR" id="Xmgxidj`Yxm7iK`R8D]9">har</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="|.UW1Gb.:L[.2ObG,DL|">
                                                    <field name="NUM">80</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="gpio_set" id="B*[#xUcLe71lrB3h`SMp">
                                                <value name="pin">
                                                  <shadow type="pinout" id="*FQewx9/OxZ8(GoBUl]W">
                                                    <field name="DEVICE">RPI_Pico</field>
                                                    <field name="PIN">9</field>
                                                  </shadow>
                                                </value>
                                                <value name="value">
                                                  <shadow type="logic_boolean" id="w3C{G5e`EXmh!.l!f5G|">
                                                    <field name="BOOL">TRUE</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="delay" id="gz#Hk)$p[_,coQ9G73U-">
                                                    <field name="SCALE">sleep</field>
                                                    <value name="TIME">
                                                      <shadow type="math_number" id="+I3rBixt/ZbW:j-4U(@Y">
                                                        <field name="NUM">0.5</field>
                                                      </shadow>
                                                    </value>
                                                    <next>
                                                      <block type="gpio_set" id="`]:7KH8W,q]nJtDgE((d">
                                                        <value name="pin">
                                                          <shadow type="pinout" id="P^iA+7/kojL`D5YVjroL">
                                                            <field name="DEVICE">RPI_Pico</field>
                                                            <field name="PIN">9</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="value">
                                                          <shadow type="logic_boolean" id="Sdu^=x8PU/{u@de%).ne">
                                                            <field name="BOOL">FALSE</field>
                                                          </shadow>
                                                        </value>
                                                        <next>
                                                          <block type="delay" id="wI8+F|sJkdLr[UdCs|qM">
                                                            <field name="SCALE">sleep</field>
                                                            <value name="TIME">
                                                              <shadow type="math_number" id="r|a2lY4*)~%RJ*C~G+`E">
                                                                <field name="NUM">0.5</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="delay" id="Ak08eQuE}vFtCLsA^9;Z">
                                <field name="SCALE">sleep_ms</field>
                                <value name="TIME">
                                  <shadow type="math_number" id="]hve.0PFqr9luuc?5L/_">
                                    <field name="NUM">200</field>
                                  </shadow>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </next>
  </block>
</xml>