Created
February 8, 2018 06:55
-
-
Save parzibyte/545ed0eddbaff6d96f46ae4a62a50b78 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
#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