Con el Library Manager de Arduino, instalar la versino 1.1.2 de LiquidCrystal I2C.
IIC/I2C interface
So the 5V interface of Arduino should connect VCC on the LCD module .
the GND interface of Arduino should connect GND on the LCD module .
SI ES ARDUINO LEONARDO, SDA VA EN SDA Y SCL VA EN SCL!!!
SINO:
the "Analog in 4" interface of Arduino should connect SDA on the LCD module .
the "Analog in 5" interface of Arduino should connect SCL on the LCD module .
-----------------------------------------------------------------------------
the "Analog in 4" interface of Arduino should connect SDA on the LCD module .
the "Analog in 5" interface of Arduino should connect SCL on the LCD module .
-----------------------------------------------------------------------------
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Prueba linea 1");
lcd.setCursor(0, 1);
lcd.print("Linea 2");
lcd.setCursor(14, 1);
lcd.print("OK");
}
void loop()
{
lcd.setCursor(9, 1);
lcd.print("es");
delay(100);
}

No hay comentarios:
Publicar un comentario