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.
Armar.cpp
- Committer:
- pcolla
- Date:
- 2013-11-16
- Revision:
- 0:f42f18c56a88
File content as of revision 0:f42f18c56a88:
#include "alarma.h"
#include "mbed.h"
void Armar(void){
Pip(1); //Armando.
for(i=0;i<delayFactory;i++){
KeepAlive();
wait(0.8); //Con KeepAlive es 1 seg por vuelta.
}
Buzzer = 1; //Armada.
wait(1);
Buzzer = 0;
while(Pulsador == false){ //Armada /////
An = SensorAnalogico(); //
Di = SensorDigital(); //
KeepAlive(); //
if((An == 2)||(Di == false)){ //
while(Pulsador == false){ //Dsparada //
Sirena(delaySirena); // //
LuzDisparo(delayLuz); // //
} ///////////// //
wait(1); //
Pip(2); //
return; //
} //
} /////////////////
Pip(2);
return;
}