/*ESTE PROGRAMA MUESTRA MEDIANTE UNA PANTALLA LCD UN CONJUNTO DE CARACTERES QUE SE
DESPLAZAN DE UN LADO A OTRO.*/
#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
lcd.init();
lcd.backlight();
//lcd.nobacklight();
//lcd.clear();
}
void loop() {
// put your main code here, to run repeatedly:
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Hola Mundo, esto");
lcd.setCursor(0,1);
lcd.print("es IoT Rooling!");
delay(4000); // this speeds up the simulation
lcd.clear();
lcd.setCursor(16,0);
lcd.print("Me ves :)!");
for(int i=1; i<=26; i++){
lcd.scrollDisplayLeft();
delay(200);
}
lcd.clear();
lcd.setCursor(0,1);
lcd.print("Te veo ;)!");
for(int i=1; i<=16; i++){
lcd.scrollDisplayRight();
delay(200);
}
}