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: detectorimpacto.hh
- Revision:
- 21:126249da7210
- Parent:
- 9:c217aed1ac8a
- Child:
- 22:29e613c92a2c
--- a/detectorimpacto.hh Fri Feb 12 14:09:55 2016 +0000
+++ b/detectorimpacto.hh Fri Feb 12 14:37:20 2016 +0000
@@ -2,9 +2,25 @@
#define detectorimpacto
#include " mbed.h"
-void detectorimpacto_mensaje(){
- DigitalOut Do1(D0);
- Do1=1;
+
+ DigitalOut rojo(LED_RED);
+void detectorimpacto_choqueX(int dataX){
+
+
+
+ rojo=1;
+ if(abs(dataX)>28000){
+ rojo=0;
+ while(1)
+ {
+
+ rojo=!rojo;
+ wait(.5);
+ }
+
+
+
+
}
