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:
- 15:c1fdacc370d5
- Parent:
- 14:968673858d9a
- Child:
- 22:29e613c92a2c
diff -r 968673858d9a -r c1fdacc370d5 Diego.h
--- a/Diego.h Fri Feb 12 13:34:04 2016 +0000
+++ b/Diego.h Fri Feb 12 13:44:30 2016 +0000
@@ -4,14 +4,18 @@
#include "mbed.h"
DigitalOut rojo(LED_RED);
+DigitalOut azul(LED_BLUE);
-void Diego_Choque(int dataX)
+void Diego_Choque(int dataX, int dataY)
{
rojo=1;
- if(abs(dataX)>32000)
+ azul=1;
+ if(abs(dataX)>32000 && abs(dataY)>32000)
{
+ azul=0;
while(1)
{
+ azul=!azul;
rojo=!rojo;
wait(.1);
}
