libreria para boton
Revision 0:aa1593c7fe2b, committed 2016-02-17
- Comitter:
- gilbertogn
- Date:
- Wed Feb 17 14:10:09 2016 +0000
- Commit message:
- gilberto
Changed in this revision
gomez.h | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gomez.h Wed Feb 17 14:10:09 2016 +0000 @@ -0,0 +1,20 @@ +#ifndef GILBERTO +#define GILBERTO +#include "mbed.h" + +DigitalIn Botondeentrada(D2); +DigitalOut Led(LED2); +void gilberto_mensaje(){ + } +int main() { + while(1){ + if(Botondeentrada==1){ + Led=0; + }else{ + Led=1; + } +} +} + + +#endif