libreria para boton
Fork of libreriaparaboton by
Revision 1:0e87be347df3, committed 2016-02-17
- Comitter:
- verden32
- Date:
- Wed Feb 17 17:19:53 2016 +0000
- Parent:
- 0:aa1593c7fe2b
- Commit message:
- xd;
Changed in this revision
gomez.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r aa1593c7fe2b -r 0e87be347df3 gomez.h --- a/gomez.h Wed Feb 17 14:10:09 2016 +0000 +++ b/gomez.h Wed Feb 17 17:19:53 2016 +0000 @@ -2,19 +2,16 @@ #define GILBERTO #include "mbed.h" -DigitalIn Botondeentrada(D2); -DigitalOut Led(LED2); + + void gilberto_mensaje(){ + + salida2=1; + wait(.5); + salida2=0; + wait(.5); } -int main() { - while(1){ - if(Botondeentrada==1){ - Led=0; - }else{ - Led=1; - } -} -} + #endif