Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created May 15, 2017 16:25
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 HectorTorres/93b8197c6c97a1c675acc263f3013f2c to your computer and use it in GitHub Desktop.
Save HectorTorres/93b8197c6c97a1c675acc263f3013f2c to your computer and use it in GitHub Desktop.
LCD16x2 EW162B0YMY
#include <LiquidCrystal.h>
// iniciamos la libreria con el nimero de pines de la interfas
LiquidCrystal lcd(11, 10, 9, 4, 5, 6, 7);
//estos números indican lo siguiente (RS, R/W, E, DB4, DB5, DB6, DB7)
void setup() {
//indicamos a la LCD el número de columnas y filas
lcd.begin(16, 2);
// imprime un mensaje en la LCD
lcd.print("HetPro!");
}
void loop() {
// apagar el display
lcd.noDisplay();
delay(500);
// encender el display
lcd.display();
delay(500);
lcd.begin(16, 2);
lcd.print("HetPro!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment