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.
main.cpp
- Committer:
- dnluna_
- Date:
- 2020-11-01
- Revision:
- 0:09e28076eda0
File content as of revision 0:09e28076eda0:
#include "mbed.h" #include <iostream> #include <stdio.h> Serial com1(USBTX, USBRX); DigitalIn boton1(p6); DigitalOut myled(p5); int main() { while(1) { if (boton1.read()==0) { myled=1; } else{ myled=0; } } }