HelloWorld.pde (606B)
1 //YWROBOT 2 //Compatible with the Arduino IDE 1.0 3 //Library version:1.1 4 #include <Wire.h> 5 #include <LiquidCrystal_I2C.h> 6 7 LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display 8 9 void setup() 10 { 11 lcd.init(); // initialize the lcd 12 lcd.init(); 13 // Print a message to the LCD. 14 lcd.backlight(); 15 lcd.setCursor(3,0); 16 lcd.print("Hello, world!"); 17 lcd.setCursor(2,1); 18 lcd.print("Ywrobot Arduino!"); 19 lcd.setCursor(0,2); 20 lcd.print("Arduino LCM IIC 2004"); 21 lcd.setCursor(2,3); 22 lcd.print("Power By Ec-yuan!"); 23 } 24 25 26 void loop() 27 { 28 }