Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 8, 2018 06:55
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 parzibyte/545ed0eddbaff6d96f46ae4a62a50b78 to your computer and use it in GitHub Desktop.
Save parzibyte/545ed0eddbaff6d96f46ae4a62a50b78 to your computer and use it in GitHub Desktop.
#include <LiquidCrystal_I2C.h>
#define ANCHURA_LCD 16
#define ALTURA_LCD 2
#define DIRECCION_LCD 0x3F // Si no sabes la dirección, visita https://parzibyte.me/blog/2018/02/02/obtener-direccion-modulo-i2c-lcd-arduino/
LiquidCrystal_I2C pantalla(DIRECCION_LCD, ANCHURA_LCD, ALTURA_LCD);
void setup() {
pantalla.init();
pantalla.backlight();
pantalla.clear();
pantalla.setCursor(0, 0); // X, Y
pantalla.print("Hola mundo!");
pantalla.setCursor(0, 1);
pantalla.print("parzibyte.me");
}
void loop() {
/*Nada por el momento*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment