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:
- marlon_aguirre
- Date:
- 2019-01-17
- Revision:
- 0:c144450b51c9
File content as of revision 0:c144450b51c9:
#include "mbed.h"
AnalogIn Sensor_3(PD_4);
Serial pc(PA_2,PA_3);
int main() {
while(1) {
pc.baud(19200);
char str [80];
int i;
pc.printf ("Ingrese el numero de muestras: ");
pc.scanf ("%79s",str);
i=60;
while(i>50){
pc.printf ("Igrese la Cantidad de Mediciones para el Promedio: ");
pc.scanf ("%d",&i);
}
pc.printf ("Mr. %s , %d years old.\n",str,i);
pc.printf ("Enter a hexadecimal number: ");
pc.scanf ("%x",&i);
pc.printf ("You have entered %#x (%d).\n",i,i);
return 0;
}
}