<xml xmlns="http://www.w3.org/1999/xhtml"><block type="controls_setupLoop" id="2" x="-182" y="55"><statement name="SETUP"><block type="lcd_def" id="3"><field name="LCD_1">8</field><field name="LCD_2">9</field><field name="LCD_3">4</field><field name="LCD_4">5</field><field name="LCD_5">6</field><field name="LCD_6">7</field><next><block type="variables_global" id="4" inline="false"><field name="VAR">hora</field><value name="VALUE"><block type="math_number" id="5"><field name="NUM">0</field></block></value><next><block type="variables_global" id="6" inline="false"><field name="VAR">minuts</field><value name="VALUE"><block type="math_number" id="7"><field name="NUM">0</field></block></value><next><block type="variables_global" id="8" inline="false"><field name="VAR">seg</field><value name="VALUE"><block type="math_number" id="9"><field name="NUM">0</field></block></value><next><block type="variables_global" id="10" inline="false"><field name="VAR">botons</field><value name="VALUE"><block type="math_number" id="11"><field name="NUM">0</field></block></value><next><block type="variables_global_type" id="12" inline="false"><field name="VAR">total</field><field name="VAR_TYPE">String</field><value name="VALUE"><block type="text" id="13"><field name="TEXT"></field></block></value><next><block type="variables_global" id="14" inline="false"><field name="VAR">sortir</field><value name="VALUE"><block type="math_number" id="15"><field name="NUM">0</field></block></value><next><block type="variables_global_type" id="16" inline="false"><field name="VAR">timetotal</field><field name="VAR_TYPE">String</field><value name="VALUE"><block type="text" id="17"><field name="TEXT"></field></block></value><next><block type="variables_global_type" id="18" inline="false"><field name="VAR">horastr</field><field name="VAR_TYPE">String</field><value name="VALUE"><block type="text" id="19"><field name="TEXT"></field></block></value><next><block type="variables_global_type" id="20" inline="false"><field name="VAR">minutsstr</field><field name="VAR_TYPE">String</field><value name="VALUE"><block type="text" id="21"><field name="TEXT"></field></block></value><next><block type="variables_global" id="22" inline="false"><field name="VAR">segstr</field><value name="VALUE"><block type="text" id="23"><field name="TEXT"></field></block></value><next><block type="lcd_clear" id="24"><next><block type="lcd_print" id="25" inline="false"><mutation fixed="true"></mutation><field name="POS">TRUE</field><value name="VAL"><block type="text" id="26"><field name="TEXT">wiki.lliurex.net</field></block></value><value name="XCOOR"><block type="math_number" id="27"><field name="NUM">1</field></block></value><value name="YCOOR"><block type="math_number" id="28"><field name="NUM">0</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name="LOOP"><block type="variables_set" id="29" inline="false"><field name="VAR">seg</field><value name="VALUE"><block type="math_arithmetic" id="30" inline="true"><field name="OP">ADD</field><value name="A"><block type="variables_get" id="31"><field name="VAR">seg</field></block></value><value name="B"><block type="math_number" id="32"><field name="NUM">1</field></block></value></block></value><next><block type="controls_if" id="33" inline="false"><value name="IF0"><block type="logic_compare" id="34" inline="true"><field name="OP">LT</field><value name="A"><block type="inout_analog_read" id="35" inline="true"><value name="PIN"><block type="math_number" id="36"><field name="NUM">0</field></block></value></block></value><value name="B"><block type="math_number" id="37"><field name="NUM">900</field></block></value></block></value><statement name="DO0"><block type="procedures_callnoreturn" id="38"><mutation name="ajusta_hora"></mutation><field name="PROCEDURES">ajusta_hora</field></block></statement><next><block type="procedures_callnoreturn" id="39"><mutation name="ajusta_cadena"></mutation><field name="PROCEDURES">ajusta_cadena</field><next><block type="base_delay" id="40" inline="true"><value name="DELAY_TIME"><block type="math_number" id="41"><field name="NUM">1000</field></block></value></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="42" x="1620" y="18"><mutation></mutation><field name="NAME">ajusta_hora</field><statement name="STACK"><block type="lcd_print" id="43" inline="false"><mutation fixed="true"></mutation><field name="POS">TRUE</field><value name="VAL"><block type="text" id="44"><field name="TEXT">Ajusta</field></block></value><value name="XCOOR"><block type="math_number" id="45"><field name="NUM">0</field></block></value><value name="YCOOR"><block type="math_number" id="46"><field name="NUM">9</field></block></value><next><block type="variables_set" id="47" inline="false"><field name="VAR">sortir</field><value name="VALUE"><block type="math_number" id="48"><field name="NUM">0</field></block></value><next><block type="controls_doWhile" id="49" inline="false"><field name="MODE">WHILE</field><statement name="DO"><block type="variables_set" id="50" inline="false"><field name="VAR">botons</field><value name="VALUE"><block type="inout_analog_read" id="51" inline="true"><value name="PIN"><block type="math_number" id="52"><field name="NUM">0</field></block></value></block></value><next><block type="controls_if" id="53" inline="false"><mutation elseif="4"></mutation><value name="IF0"><block type="logic_compare" id="54" inline="true"><field name="OP">LT</field><value name="A"><block type="variables_get" id="55"><field name="VAR">botons</field></block></value><value name="B"><block type="math_number" id="56"><field name="NUM">50</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="57" inline="false"><field name="VAR">hora</field><value name="VALUE"><block type="math_arithmetic" id="58" inline="true"><field name="OP">ADD</field><value name="A"><block type="variables_get" id="59"><field name="VAR">hora</field></block></value><value name="B"><block type="math_number" id="60"><field name="NUM">1</field></block></value></block></value></block></statement><value name="IF1"><block type="logic_compare" id="61" inline="true"><field name="OP">LT</field><value name="A"><block type="variables_get" id="62"><field name="VAR">botons</field></block></value><value name="B"><block type="math_number" id="63"><field name="NUM">200</field></block></value></block></value><statement name="DO1"><block type="procedures_callnoreturn" id="64"><mutation name="sincro_hora"></mutation><field name="PROCEDURES">sincro_hora</field></block></statement><value name="IF2"><block type="logic_compare" id="65" inline="true"><field name="OP">LT</field><value name="A"><block type="variables_get" id="66"><field name="VAR">botons</field></block></value><value name="B"><block type="math_number" id="67"><field name="NUM">300</field></block></value></block></value><statement name="DO2"><block type="variables_set" id="68" inline="false"><field name="VAR">minuts</field><value name="VALUE"><block type="math_arithmetic" id="69" inline="true"><field name="OP">ADD</field><value name="A"><block type="variables_get" id="70"><field name="VAR">minuts</field></block></value><value name="B"><block type="math_number" id="71"><field name="NUM">1</field></block></value></block></value></block></statement><value name="IF3"><block type="logic_compare" id="72" inline="true"><field name="OP">LT</field><value name="A"><block type="variables_get" id="73"><field name="VAR">botons</field></block></value><value name="B"><block type="math_number" id="74"><field name="NUM">500</field></block></value></block></value><statement name="DO3"><block type="variables_set" id="75" inline="false"><field name="VAR">seg</field><value name="VALUE"><block type="math_arithmetic" id="76" inline="true"><field name="OP">ADD</field><value name="A"><block type="variables_get" id="77"><field name="VAR">seg</field></block></value><value name="B"><block type="math_number" id="78"><field name="NUM">1</field></block></value></block></value></block></statement><value name="IF4"><block type="logic_compare" id="79" inline="true"><field name="OP">LT</field><value name="A"><block type="variables_get" id="80"><field name="VAR">botons</field></block></value><value name="B"><block type="math_number" id="81"><field name="NUM">700</field></block></value></block></value><statement name="DO4"><block type="variables_set" id="82" inline="false"><field name="VAR">sortir</field><value name="VALUE"><block type="math_number" id="83"><field name="NUM">1</field></block></value></block></statement><next><block type="procedures_callnoreturn" id="84"><mutation name="ajusta_cadena"></mutation><field name="PROCEDURES">ajusta_cadena</field><next><block type="base_delay" id="85" inline="true"><value name="DELAY_TIME"><block type="math_number" id="86"><field name="NUM">100</field></block></value></block></next></block></next></block></next></block></statement><value name="WHILE"><block type="logic_compare" id="87" inline="true"><field name="OP">NEQ</field><value name="A"><block type="variables_get" id="88"><field name="VAR">sortir</field></block></value><value name="B"><block type="math_number" id="89"><field name="NUM">1</field></block></value></block></value><next><block type="variables_set" id="90" inline="false"><field name="VAR">sortir</field><value name="VALUE"><block type="math_number" id="91"><field name="NUM">0</field></block></value><next><block type="lcd_print" id="92" inline="false"><mutation fixed="true"></mutation><field name="POS">TRUE</field><value name="VAL"><block type="text" id="93"><field name="TEXT"> </field></block></value><value name="XCOOR"><block type="math_number" id="94"><field name="NUM">0</field></block></value><value name="YCOOR"><block type="math_number" id="95"><field name="NUM">9</field></block></value><next><block type="base_delay" id="96" inline="true"><value name="DELAY_TIME"><block type="math_number" id="97"><field name="NUM">100</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="98" x="595" y="72"><mutation></mutation><field name="NAME">ajusta_cadena</field><statement name="STACK"><block type="controls_if" id="99" inline="false"><value name="IF0"><block type="logic_compare" id="100" inline="true"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="101"><field name="VAR">seg</field></block></value><value name="B"><block type="math_number" id="102"><field name="NUM">60</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="103" inline="false"><field name="VAR">minuts</field><value name="VALUE"><block type="math_arithmetic" id="104" inline="true"><field name="OP">ADD</field><value name="A"><block type="variables_get" id="105"><field name="VAR">minuts</field></block></value><value name="B"><block type="math_number" id="106"><field name="NUM">1</field></block></value></block></value><next><block type="variables_set" id="107" inline="false"><field name="VAR">seg</field><value name="VALUE"><block type="math_number" id="108"><field name="NUM">0</field></block></value></block></next></block></statement><next><block type="controls_if" id="109" inline="false"><value name="IF0"><block type="logic_compare" id="110" inline="true"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="111"><field name="VAR">minuts</field></block></value><value name="B"><block type="math_number" id="112"><field name="NUM">60</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="113" inline="false"><field name="VAR">hora</field><value name="VALUE"><block type="math_arithmetic"