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.
Diego.h@14:968673858d9a, 2016-02-12 (annotated)
- Committer:
 - DiegoRivera
 - Date:
 - Fri Feb 12 13:34:04 2016 +0000
 - Revision:
 - 14:968673858d9a
 - Parent:
 - 12:6437206cd4d5
 - Child:
 - 15:c1fdacc370d5
 
Detecta X
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| DiegoRivera | 12:6437206cd4d5 | 1 | #ifndef Diego | 
| DiegoRivera | 12:6437206cd4d5 | 2 | #define Diego | 
| DiegoRivera | 12:6437206cd4d5 | 3 | |
| DiegoRivera | 12:6437206cd4d5 | 4 | #include "mbed.h" | 
| DiegoRivera | 14:968673858d9a | 5 | |
| DiegoRivera | 14:968673858d9a | 6 | DigitalOut rojo(LED_RED); | 
| DiegoRivera | 14:968673858d9a | 7 | |
| DiegoRivera | 14:968673858d9a | 8 | void Diego_Choque(int dataX) | 
| DiegoRivera | 12:6437206cd4d5 | 9 | { | 
| DiegoRivera | 14:968673858d9a | 10 | rojo=1; | 
| DiegoRivera | 14:968673858d9a | 11 | if(abs(dataX)>32000) | 
| DiegoRivera | 14:968673858d9a | 12 | { | 
| DiegoRivera | 14:968673858d9a | 13 | while(1) | 
| DiegoRivera | 14:968673858d9a | 14 | { | 
| DiegoRivera | 14:968673858d9a | 15 | rojo=!rojo; | 
| DiegoRivera | 14:968673858d9a | 16 | wait(.1); | 
| DiegoRivera | 14:968673858d9a | 17 | } | 
| DiegoRivera | 14:968673858d9a | 18 | } | 
| DiegoRivera | 12:6437206cd4d5 | 19 | } | 
| DiegoRivera | 12:6437206cd4d5 | 20 | |
| DiegoRivera | 12:6437206cd4d5 | 21 | #endif | 
