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:313f7b0a1e16
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Apr 12 03:17:56 2020 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+
+Serial com1(USBTX, USBRX);
+
+
+void Boton(int Si, int No)
+{
+ int pulsado;
+
+ pulsado = Si;
+
+ com1.printf("El boton esta pulsado \n", pulsado);
+
+
+ int sinpulsar;
+
+ sinpulsar = No;
+
+ com1.printf("El boton no esta pulsado \n", sinpulsar);
+
+}
+int main ()
+{
+ int e1,e2;
+
+ e1 = 0;
+ e2 = !e1;
+
+ Boton(e1,e2);
+
+
+}
\ No newline at end of file