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.
Diff: Test.cpp
- Revision:
- 0:f42f18c56a88
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Test.cpp Sat Nov 16 00:48:19 2013 +0000
@@ -0,0 +1,26 @@
+#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;
+}
\ No newline at end of file