![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
k
Revision 0:3fb63a3c606b, committed 2014-10-07
- Comitter:
- gerardo_carmona
- Date:
- Tue Oct 07 15:46:30 2014 +0000
- Commit message:
- Primera prueba;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Oct 07 15:46:30 2014 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalIn boton(D2); + +int main() { + boton.mode(PullUp); + while(1) { + if (boton == 1){ + myled = 1; + } else { + myled = 0; + } + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Oct 07 15:46:30 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file