pepe
Embed:
(wiki syntax)
Show/hide line numbers
Test.cpp
00001 #include "alarma.h" 00002 #include "mbed.h" 00003 00004 int Test1 = 0; 00005 int Test2 = 0; 00006 int j = 0; 00007 int resultado = 0; 00008 00009 int Test(void){ 00010 Auto = 1; //Luego de un test se arma automáticamente. 00011 while(Pulsador != 0){ 00012 LED(Titila); 00013 KeepAlive(); 00014 } 00015 Test1 = SensorAnalogico(); //Sistema testea 00016 Test2 = SensorDigital(); //Sistema testea 00017 for(j=0;j<2;j++) 00018 LED(Titila); //Usuario testea 00019 LuzDisparo(delayLuz); //Usuario testea 00020 Sirena(testSirena); //Usuario testea 00021 if((Test1 != 1) || (Test2 != true)) 00022 resultado = 0; 00023 else 00024 resultado = 1; 00025 return resultado; 00026 }
Generated on Wed Jul 27 2022 00:30:41 by
1.7.2