Reference.LiquidCrystalWrite History

Hide minor edits - Show changes to output

November 04, 2011, at 02:47 PM by Scott Fitzgerald -
Added lines 19-24:

!!!!Returns

byte\\
write() will return the number of bytes written, though reading that number is optional
Changed line 27 from:
[@
to:
(:source lang=arduino:)
Changed line 43 from:
@]
to:
(:sourceend:)
September 07, 2008, at 11:59 AM by David A. Mellis -
Added lines 1-37:
[[LiquidCrystal]]

!!write()

!!!!Description

Write a character to the LCD.

!!!!Syntax

''lcd''.write(data)

!!!!Parameters

lcd: a variable of type LiquidCrystal

data: the character to write to the display

!!!!Example

[@
#include <LiquidCrystal.h>

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

void setup()
{
Serial.begin(9600);
}

void loop()
{
if (Serial.available()) {
lcd.write(Serial.read());
}
}
@]

Share