📄 lcd2004helloworld.pde
字号:
//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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -