lcd2004helloworld.pde

来自「LiquidCrystal_I2C函数库」· PDE 代码 · 共 29 行

PDE
29
字号
//DFRobot.com
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x27 for a 20 chars and 4 line display

void setup()
{
  delay(500);
  lcd.init();                      // initialize the lcd 
 
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(0, 0);
  delay(100);
  lcd.setCursor(4, 0);
  lcd.print("Hello, world!");
  lcd.setCursor(5, 1);
  lcd.print("Welcome to");
  lcd.setCursor(2, 2);
  lcd.print("www.DFRobot.com");
  lcd.setCursor(1, 3);
  lcd.print("www.DFRobot.com.cn");
}

void loop()
{
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?