ARDUINO WITH I2C LCD DISPLAY USING PCF8574A


fig:1,  Proteus Simulation




/*
  This is an Example for the  LCD I2C

 Library originally added 18 Apr 2017
 by HARIKRISHNAN
 library modified 12 Jul 2017





 */

// include the library code:
#include <Wire.h>
#include <FaBoLCD_PCF8574.h>

// initialize the library
FaBoLCD_PCF8574 lcd(0x3f);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, AM HARIKRISHNAN!");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis() / 1000);
}


                                                                                                           Harikrishnan K
                                                                                                            ( BE, EEE )



Comments

Post a Comment

Popular posts from this blog

SEND SMS USING ARDUINO AND GSM