/*
* Date: 04/10/2022
* Title: LCD 16x2 ESP32
* Author: Rubén Lozano
*
* References:
*
*/
/*
*****************************************************
*
* LIBRERIAS
*
*****************************************************
*/
#include "LiquidCrystal.h"
/*
*****************************************************
*
* VARIABLES DEFINIDAS.
*
*****************************************************
*/
#define RS 19 //PIN D19 o D5
#define EN 18 //PIN D18 o TX2 GPIO17
#define DB4 5 //PIN D5 o RX2 GPIO16
#define DB5 4 //PIN D4
#define DB6 2 //PIN D2
#define DB7 15 //PIN D15
LiquidCrystal lcd(RS, EN, DB4, DB5, DB6, DB7); //INICIALIZACION LCD 16x2
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("HOLA MUNDO");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis() / 1000);
}