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.
Diff: main.cpp
- Revision:
- 0:09e28076eda0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Nov 01 00:01:02 2020 +0000
@@ -0,0 +1,25 @@
+#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;
+ }
+ }
+}
+
+
\ No newline at end of file