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:
- 26:96e21df1c4c7
- Parent:
- 25:c9dced8fd392
--- a/main.cpp Sun Apr 12 06:59:51 2020 +0000
+++ b/main.cpp Sun Apr 12 07:22:41 2020 +0000
@@ -2,6 +2,8 @@
#include <mbed.h>
#include<iostream>
#define letra_a 97
+#define letra_b 98
+#define letra_c 99
using namespace std;
Serial com1(USBTX,USBRX);
@@ -17,10 +19,17 @@
if (letra == letra_a)
{
- com1.printf("\nBuen dia");
+ com1.printf("\nHola");
}
-
+ if (letra == letra_b)
+ {
+ com1.printf("\nQue tengas buen dia");
+ }
+ if (letra == letra_c)
+ {
+ com1.printf("\nHasta luego");
+ }
}