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 3:59d6245cad22, committed 2022-04-25
- Comitter:
- fernando_moraless
- Date:
- Mon Apr 25 14:39:08 2022 +0000
- Parent:
- 2:b2512ade96de
- Commit message:
- aaaaaaaaaaaaa
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Apr 25 05:47:44 2022 +0000
+++ b/main.cpp Mon Apr 25 14:39:08 2022 +0000
@@ -23,14 +23,12 @@
int i, j;
char datos[3][5];
- // Inicia the LCD
+ // Inicia la LCD
lcd.begin();
-
- // Turn on the blacklight.
- lcd.backlight();
lcd.print("Esperando ...");
- pc.printf("\nIngresa 3 datos de 4 caracteres al programa por medio de la terminal: ");
+ pc.printf("\nIngresa 3 números decimales de la forma <X.X> \r\n");
+
for (i = 0; i < 3; i++)
{
pc.printf("\r\nDato %i: ", i + 1);
@@ -38,10 +36,12 @@
datos[i][j] = pc.getc();
datos[i][3] = ' ';
datos[i][4] = 0;
+ pc.printf(" %s", datos[i]);
}
lcd.clear();
lcd.print(datos[0]);
lcd.print(datos[1]);
lcd.print(datos[2]);
-}
-
+
+ pc.printf("\n\r\nEnviando datos a la LCD...");
+}
\ No newline at end of file