Created
May 15, 2017 16:25
-
-
Save HectorTorres/93b8197c6c97a1c675acc263f3013f2c to your computer and use it in GitHub Desktop.
LCD16x2 EW162B0YMY
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.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