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:
- 25:c9dced8fd392
- Parent:
- 24:7f14b70fc9ef
- Child:
- 26:96e21df1c4c7
--- a/main.cpp Mon Apr 08 11:03:25 2019 +0100
+++ b/main.cpp Sun Apr 12 06:59:51 2020 +0000
@@ -1,12 +1,29 @@
-#include "mbed.h"
-
-DigitalOut myled(LED1);
+#include <stdio.h>
+#include <mbed.h>
+#include<iostream>
+#define letra_a 97
-int main() {
- while(1) {
- myled = 1;
- wait(0.2);
- myled = 0;
- wait(0.2);
+using namespace std;
+Serial com1(USBTX,USBRX);
+int main()
+{
+
+ char letra;
+ com1.printf("Introduzca la primera letra del abecedario:");
+ com1.scanf(" %c, &n");
+ while (1)
+ {
+ letra=getchar();
+
+ if (letra == letra_a)
+ {
+ com1.printf("\nBuen dia");
+ }
+
+
}
-}
+
+
+
+
+}
\ No newline at end of file