<xml xmlns="http://www.w3.org/1999/xhtml"><blockly picaxe="28X2" version="1.3.4" pinNames="B.0:Voyant_Lumineux|B.1:Emetteur_IR_Ext|B.2:Emetteur_IR_int|B.3:Buzzer|B.6:Moteur_A1|B.7:Moteur_A2|C.0:BP_Interieur|C.1:FDC_Ouverture|C.2:FDC_Fermeture|C.3:BP_Exterieur|C.4:Recepteur_IR_Ext|C.5:Recepteur_IR_int|C.6:BLTH_TX|C.7:BLTH_RX" customToolbox="false"/><block type="picaxe_control_start" deletable="false" x="-12" y="-12"><next><block type="picaxe_loops_forever"><statement name="NAME"><block type="picaxe_input_irin_timeout"><field name="PIN">C.4</field><field name="VAR">consigne</field><field name="TV">TRUE</field><field name="USE_TIMEOUT">FALSE</field><next><block type="picaxe_flow_mutator_if"><mutation elseif="1"></mutation><field name="OP0">=</field><field name="OP1">=</field><value name="VAR10"><block type="picaxe_vals_var"><field name="VAR">consigne</field></block></value><value name="VAR20"><block type="picaxe_vals_val"><field name="VALUE">20</field></block></value><statement name="THEN0"><block type="picaxe_input_ifpin"><field name="PIN">C.1</field><field name="STATE">0</field><statement name="THEN"><block type="procedures_callnoreturn"><mutation name="ouvrir"></mutation></block></statement></block></statement><value name="VAR11"><block type="picaxe_vals_var"><field name="VAR">consigne</field></block></value><value name="VAR21"><block type="picaxe_vals_val"><field name="VALUE">19</field></block></value><statement name="THEN1"><block type="picaxe_input_ifpin"><field name="PIN">C.2</field><field name="STATE">0</field><statement name="THEN"><block type="procedures_callnoreturn"><mutation name="fermer"></mutation></block></statement></block></statement><next><block type="picaxe_variables_set"><field name="NAME">consigne</field><value name="VALUE"><block type="picaxe_vals_val"><field name="VALUE">0</field></block></value></block></next></block></next></block></statement></block></next></block><block type="procedures_defnoreturn" x="638" y="-12"><field name="NAME">ouvrir</field><statement name="STACK"><block type="picaxe_output_outputon"><field name="PIN">B.6</field><field name="VALUE">1</field><next><block type="picaxe_output_outputon"><field name="PIN">B.7</field><field name="VALUE">0</field><next><block type="picaxe_output_outputon"><field name="PIN">B.0</field><field name="VALUE">1</field><next><block type="picaxe_delays_until_pin"><field name="PIN">C.1</field><field name="STATE">1</field><next><block type="procedures_callnoreturn"><mutation name="arret"></mutation></block></next></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" x="637" y="188"><field name="NAME">fermer</field><statement name="STACK"><block type="picaxe_output_outputon"><field name="PIN">B.6</field><field name="VALUE">0</field><next><block type="picaxe_output_outputon"><field name="PIN">B.7</field><field name="VALUE">1</field><next><block type="picaxe_output_outputon"><field name="PIN">B.0</field><field name="VALUE">1</field><next><block type="picaxe_delays_until_pin"><field name="PIN">C.2</field><field name="STATE">1</field><next><block type="procedures_callnoreturn"><mutation name="arret"></mutation></block></next></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" x="637" y="388"><field name="NAME">arret</field><statement name="STACK"><block type="picaxe_output_outputon"><field name="PIN">B.6</field><field name="VALUE">0</field><next><block type="picaxe_output_outputon"><field name="PIN">B.7</field><field name="VALUE">0</field><next><block type="picaxe_output_outputon"><field name="PIN">B.0</field><field name="VALUE">1</field></block></next></block></next></block></statement></block></xml>