[C] 纯文本查看 复制代码
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup(){
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
}
void loop(){
lcd.init();
lcd.setCursor(0,0);
lcd.print("8888888888888888");
lcd.setCursor(0,1);
lcd.print("HHHHHHHHHHHHHHHH");
delay(1000);
lcd.setCursor(0,0);
lcd.print("HHHHHHHHHHHHHHHHH");
lcd.setCursor(0,1);
lcd.print("0000000000000000");
delay(1000);
}