HelloWorld.pde 573 B

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