Biblioteca LiquidCrystal – Hola mundo
La biblioteca Liquid Crystal funciona con todos los LCD pantallas compatibles con Hitachi controlador HD44780. Hay muchos de ellos fuera
allí, y por lo general se les puede decir por la Interfaz de 16 pines.
Este boceto imprime «¡Hola mundo!», a la pantalla LCD
y muestra la hora.

El circuito:
- Pin LCD RS a pin digital 12
- Pin de activación de LCD a pin digital 11
- Pin LCD D4 a pin digital 5
- Pin LCD D5 a pin digital 4
- Pin LCD D6 a pin digital 3
- Pin LCD D7 a pin digital 2
- LCD R/W pin a tierra
- Pin LCD VSS a tierra
- Pin LCD VCC a 5V
- Resistencia de 10K:
- termina a +5V y tierra
- limpiaparabrisas al pin LCD VO (pin 3)
#include <LiquidCrystal.h>
int seconds = 0;
LiquidCrystal lcd_1(12, 11, 5, 4, 3, 2);
void setup()
{
lcd_1.begin(16, 2); // Set up the number of columns and rows on the LCD.
// Print a message to the LCD.
lcd_1.print("hello world!");
}
void loop()
{
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting
// begins with 0):
lcd_1.setCursor(0, 1);
// print the number of seconds since reset:
lcd_1.print(seconds);
delay(1000); // Wait for 1000 millisecond(s)
seconds += 1;
}