Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 3:5ca376de4acf, committed 2016-03-02
- Comitter:
- verden32
- Date:
- Wed Mar 02 20:03:38 2016 +0000
- Parent:
- 2:a3e85eabbc86
- Commit message:
- kkk
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/main.cpp	Wed Mar 02 19:15:04 2016 +0000
+++ b/main.cpp	Wed Mar 02 20:03:38 2016 +0000
@@ -19,13 +19,16 @@
         veces=0;
         if(veces==3)
         activar=1;
-    
-        if(vecesA>=10){
-           Alarma=1; 
-           }
-            if(vecesA=70){
-           Alarma=0; 
-           vecesA=0;
+        if (vecesA==5)
+        veces=0;
+        if((vecesA==4)&&(EntS2==1)){ //4 TIEMPO DE REPETICION PARA SENSOR 2
+            encendido=1;
+            veces=0;
+            }
+        if(encendido==1){// LLAMAR VARIABLE 
+            Alarma=1;
+            }
+            
         }
     
 int main() {
@@ -52,12 +55,13 @@
            led2=0;
            led3=0;
            }
-       if(EntS2==1){ // Por terminar 
+       if(encendido==1){ // Por terminar 
            led1=0;
            led2=1;
            led3=0;
-           encendido=1;
            encendido=0;
+           Alarma=0;
+           wait(1);
            }
        if(EntS3==1){ // Vacio "valio madre"
            led1=0;