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.
main.cpp
- Committer:
- janely
- Date:
- 2020-04-12
- Revision:
- 26:96e21df1c4c7
- Parent:
- 25:c9dced8fd392
File content as of revision 26:96e21df1c4c7:
#include <stdio.h>
#include <mbed.h>
#include<iostream>
#define letra_a 97
#define letra_b 98
#define letra_c 99
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("\nHola");
}
if (letra == letra_b)
{
com1.printf("\nQue tengas buen dia");
}
if (letra == letra_c)
{
com1.printf("\nHasta luego");
}
}
}