Carlos Ramirez
/
BorradorCPP
Ejemplo Publicacion
Revision 0:a6d7375b2536, committed 2020-02-01
- Comitter:
- ramirezcar
- Date:
- Sat Feb 01 17:56:54 2020 +0000
- Commit message:
- Ejemplo Publicacion
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 |
diff -r 000000000000 -r a6d7375b2536 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Feb 01 17:56:54 2020 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" //llamado de librería mbed + +DigitalOut myled(PD_13);//clase y objeto + +int main() {//declaración función principal + while(1) { //bucle mientras que... + myled = 1; //el programa + wait(2); + myled = 0; + wait(2); + } +}
diff -r 000000000000 -r a6d7375b2536 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Feb 01 17:56:54 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file