Reference.LiquidCrystalConstructor History

Show minor edits - Show changes to markup

November 01, 2013, at 08:14 PM by Scott Fitzgerald -
Changed line 28 from:

[@

to:
Added line 35:
  lcd.begin(16,1);
Changed line 40 from:

@]

to:
August 11, 2009, at 11:13 PM by David A. Mellis -
Changed lines 7-8 from:

Creates a variable of type LiquidCrystal.

to:

Creates a variable of type LiquidCrystal. The display can be controlled using 4 or 8 data lines. If the former, omit the pin numbers for d0 to d3 and leave those lines unconnected. The RW pin can be tied to ground instead of connected to a pin on the Arduino; if so, omit it from this function's parameters.

Added line 11:

LiquidCrystal(rs, enable, d4, d5, d6, d7) \\

Added line 13:

LiquidCrystal(rs, enable, d0, d1, d2, d3, d4, d5, d6, d7) \\

Changed lines 20-21 from:

rw: the number of the Arduino pin that is connected to the RW pin on the LCD

to:

rw: the number of the Arduino pin that is connected to the RW pin on the LCD (optional)

January 10, 2009, at 09:41 AM by David A. Mellis -
Changed lines 22-23 from:

d0, d1, d2, d3, d4, d5, d6, d7: the numbers of the Arduino pins that are connected to the corresponding data pins on the LCD. d0, d1, d2, and d3 are optional; if omitted, the LCD will be controlled using only four data lines.

to:

d0, d1, d2, d3, d4, d5, d6, d7: the numbers of the Arduino pins that are connected to the corresponding data pins on the LCD. d0, d1, d2, and d3 are optional; if omitted, the LCD will be controlled using only the four data lines (d4, d5, d6, d7).

October 20, 2008, at 10:34 PM by David A. Mellis -
Changed line 11 from:

LiquidCrystal(rs, rw, enable, d0, d1, d2, d3) \\

to:

LiquidCrystal(rs, rw, enable, d4, d5, d6, d7) \\

Changed lines 22-23 from:

d0, d1, d2, d3, d4, d5, d6, d7: the numbers of the Arduino pins that are connected to the corresponding data pins on the LCD. d4, d5, d6, and d7 are optional; if omitted, the LCD will be controlled using only four data lines.

to:

d0, d1, d2, d3, d4, d5, d6, d7: the numbers of the Arduino pins that are connected to the corresponding data pins on the LCD. d0, d1, d2, and d3 are optional; if omitted, the LCD will be controlled using only four data lines.

September 07, 2008, at 11:23 AM by David A. Mellis -
Added lines 1-37:

LiquidCrystal

LiquidCrystal()

Description

Creates a variable of type LiquidCrystal.

Syntax

LiquidCrystal(rs, rw, enable, d0, d1, d2, d3)
LiquidCrystal(rs, rw, enable, d0, d1, d2, d3, d4, d5, d6, d7)

Parameters

rs: the number of the Arduino pin that is connected to the RS pin on the LCD

rw: the number of the Arduino pin that is connected to the RW pin on the LCD

enable: the number of the Arduino pin that is connected to the enable pin on the LCD

d0, d1, d2, d3, d4, d5, d6, d7: the numbers of the Arduino pins that are connected to the corresponding data pins on the LCD. d4, d5, d6, and d7 are optional; if omitted, the LCD will be controlled using only four data lines.

Example

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

void setup()
{
  lcd.print("hello, world!");
}

void loop() {}

Share