Standard 16 X 2 LCD

Allows you to control LCD displays that are compatible with the Hitachi HD44780 driver. There are many of them out there, and you can usually tell them by the 16-pin interface.

Supported Products

  • Standard LCD 16x2

Includes

// include the library code:
#include

Decleration Code

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
/*
LCD RS pin to digital pin 12
LCD Enable pin to digital pin 11
LCD D4 pin to digital pin 5
LCD D5 pin to digital pin 4
LCD D6 pin to digital pin 3
LCD D7 pin to digital pin 2
*/

Setup Code

lcd.begin(16, 2);
lcd.clear();

Trigger

lcd.clear();
lcd.print(Input_Line1Text);

InputChange

lcd.setCursor(0, 1);
lcd.print(Input_Activation);

No required source files.

To use this node in your Embrio project, either add it from the Library toolbar or copy the XML in the below box and paste it into a node screen.

This node demonstrates how to write to an LCD in two different ways. First, an input text value is written to the first line when a trigger fires. Also, an input activation value is printed on the second line every time it changes.

Getting these LCDs can be tricky, so it’s advised that you make sure everything is working by running the “hello world” Arduino example.

View Comments (0)