write()
描述
在液晶顯示器上顯示字元。
語法
lcd.write(data)
參數
data
:要顯示到液晶顯示器上的字元
回傳
byte
:回傳輸出到液晶顯示器上的字元數
範例
#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()); } }
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.