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.
Test.cpp
- Committer:
- pcolla
- Date:
- 2013-11-16
- Revision:
- 0:f42f18c56a88
File content as of revision 0:f42f18c56a88:
#include "alarma.h"
#include "mbed.h"
int Test1 = 0;
int Test2 = 0;
int j = 0;
int resultado = 0;
int Test(void){
Auto = 1; //Luego de un test se arma automáticamente.
while(Pulsador != 0){
LED(Titila);
KeepAlive();
}
Test1 = SensorAnalogico(); //Sistema testea
Test2 = SensorDigital(); //Sistema testea
for(j=0;j<2;j++)
LED(Titila); //Usuario testea
LuzDisparo(delayLuz); //Usuario testea
Sirena(testSirena); //Usuario testea
if((Test1 != 1) || (Test2 != true))
resultado = 0;
else
resultado = 1;
return resultado;
}