Skip to content

Instantly share code, notes, and snippets.

@Naylamp-Mechatronics
Last active March 8, 2023 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Naylamp-Mechatronics/91fdf2fc4d4107ac0233063045d7a3e7 to your computer and use it in GitHub Desktop.
Save Naylamp-Mechatronics/91fdf2fc4d4107ac0233063045d7a3e7 to your computer and use it in GitHub Desktop.
/* FILE: lcd2004_hellotest.ino
DATE: 07/03/2023
VERSION: 1.0
AUTHOR: Naylamp Mechatronics - Peru / Dast.C
*/
#include <LiquidCrystal.h>
//Crear el objeto LCD con los números correspondientes (rs, en, d4, d5, d6, d7)
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup() {
// Inicializar el LCD con el número de columnas y filas del LCD
lcd.begin(20, 4);
// Escribimos el Mensaje en el LCD.
lcd.print("Hola Mundo!");
}
void loop() {
// Ubicamos el cursor en la primera posición(columna:0) de la segunda línea(fila:1)
lcd.setCursor(0, 1);
// Escribimos el número de segundos trascurridos
lcd.print(millis()/1000);
lcd.print(" Segundos");
lcd.setCursor(0, 2);
lcd.print(millis());
lcd.print(" millis");
lcd.setCursor(0, 3);
lcd.print("naylampmechatronics");
delay(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment