HelloWorld.pde 605 B

12345678910111213141516171819202122232425262728
  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. LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
  7. void setup()
  8. {
  9. lcd.init(); // initialize the lcd
  10. lcd.init();
  11. // Print a message to the LCD.
  12. lcd.backlight();
  13. lcd.setCursor(3,0);
  14. lcd.print("Hello, world!");
  15. lcd.setCursor(2,1);
  16. lcd.print("Ywrobot Arduino!");
  17. lcd.setCursor(0,2);
  18. lcd.print("Arduino LCM IIC 2004");
  19. lcd.setCursor(2,3);
  20. lcd.print("Power By Ec-yuan!");
  21. }
  22. void loop()
  23. {
  24. }