begin()

描述

初始化液晶显示器,藉由给予液晶显示器的高度和宽度,让 LiquidCrystal 物件知道液晶显示器的可印范围。

begin() 这个函式必须在呼叫所有 LiquidCrystal 函式库提供的函式之前呼叫。

语法


lcd.begin(cols, rows)

参数

cols:液晶显示器可印范围的行数
rows:液晶显示器可印范围的列数


函式库参考主页面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.