You are on page 1of 3

afisare

//YWROBOT

//Compatible with the Arduino IDE 1.0

//Library version:1.1

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x3F,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()

lcd.init(); // initialize the lcd

lcd.init();

// Print a message to the LCD.

lcd.backlight();

lcd.setCursor(3,0);

lcd.print("Hello, world!");

lcd.setCursor(2,1);

lcd.print("Ywrobot Arduino!");

lcd.setCursor(0,2);

lcd.print("Arduino LCM IIC 2004");

lcd.setCursor(2,3);

lcd.print("Power By Ec-yuan!");

void loop()

}
PCF85.......

/* Demonstration sketch for PCF8574T I2C LCD Backpack

Uses library from https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads GNU General Public


License, version 3 (GPL-3.0) */

#include <Wire.h>

#include <LCD.h>

#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7); // 0x27 is the I2C bus address for an unmodified backpack

void setup()

// activate LCD module

lcd.begin (16,2); // for 16 x 2 LCD module

lcd.setBacklightPin(3,POSITIVE);

lcd.setBacklight(HIGH);

void loop()

lcd.home (); // set cursor to 0,0

lcd.print(" tronixlabs.com");

lcd.setCursor (0,1); // go to start of 2nd line

lcd.print(millis());

delay(1000);

lcd.setBacklight(LOW); // Backlight of

delay(250);
lcd.setBacklight(HIGH); // Backlight on

delay(1000);

You might also like