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:8193698dab31
diff -r 000000000000 -r 8193698dab31 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Nov 12 06:44:10 2020 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h" //P4E3
+Serial comunication(USBTX, USBRX);
+//Programa que hace uso de la condicinal if a tráves de tres distintas teclas
+int main (){
+ char x;
+ comunication.printf("¿Qué día es hoy?\n");
+ comunication.printf("Lunes= l Martes=a Miercoles= m Jueves= j Viernes= v Sábado=s Domingo= d\n");
+ scanf("%s", &x);
+
+ if(x=='l')
+ {
+ comunication.printf("Tienes clase de SDR\n");
+ }
+ if(x=='v')
+ {
+ comunication.printf("Tienes clase de SDR\n");
+ }
+ if(x=='s')
+ {
+ comunication.printf("Tienes clase de SDR\n");
+ }
+ else{
+ comunication.printf("No tienes clase :) \n");
+ }
+}
\ No newline at end of file