實驗物理技術:2009/02-06
登入

http://arduino.cc/en/Reference/LiquidCrystalConstructor

LiquidCrystal()

Description

Creates a variable of type LiquidCrystal.

Syntax

LiquidCrystal(rs, rw, enable, d4, d5, d6, d7)
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. d0, d1, d2, and d3 are optional; if omitted, the LCD will be
controlled using only the four data lines (d4, d5, d6, d7).

Example

#include <LiquidCrystal.h>

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

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

void loop() {}


0最後修改紀錄: 2009/04/21(Tue) 09:00:10


尚未登入. (登入)

since 2011/06/20 18:23