Last active
March 8, 2023 00:53
-
-
Save Naylamp-Mechatronics/91fdf2fc4d4107ac0233063045d7a3e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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