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.
Revision 0:c144450b51c9, committed 2019-01-17
- Comitter:
- marlon_aguirre
- Date:
- Thu Jan 17 23:45:21 2019 +0000
- Commit message:
- marlon aguirre
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r c144450b51c9 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Jan 17 23:45:21 2019 +0000
@@ -0,0 +1,25 @@
+#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;
+}
+}
diff -r 000000000000 -r c144450b51c9 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jan 17 23:45:21 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc \ No newline at end of file