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: Diego.h
- Revision:
- 14:968673858d9a
- Parent:
- 12:6437206cd4d5
- Child:
- 15:c1fdacc370d5
--- a/Diego.h	Fri Feb 12 13:15:07 2016 +0000
+++ b/Diego.h	Fri Feb 12 13:34:04 2016 +0000
@@ -2,10 +2,20 @@
 #define Diego
 
 #include "mbed.h"
-void Diego_mensaje()
+
+DigitalOut rojo(LED_RED);
+
+void Diego_Choque(int dataX)
 {
-    DigitalOut Do1(D0);
-    Do1=1;
+    rojo=1;
+    if(abs(dataX)>32000)
+    {
+         while(1)
+         {
+             rojo=!rojo;
+             wait(.1);
+         }
+    }
 }
 
 #endif
\ No newline at end of file
    