Fernando Morales / Mbed 2 deprecated I2C_1_B

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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