Skip to content

Library for the LiquidCrystal LCD display connect I2C bus to an ESP8266 or Arduino board

License

Notifications You must be signed in to change notification settings

lucasmaziero/LiquidCrystal_I2C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiquidCrystal_I2C

ESP8266 or ARUINO with 16x2 i2c adaptable to others, tested with ESP8266-12(LoLin), ESP8266-01 and Arduino-Uno.

Compatible with the Arduino IDE 1.8.3 Library LiquidCrystal_I2C

Original Library Arduino-LiquidCrystal-I2C-library

Standard for ESP8266 with pins 4-SDA 5-SCL or ARDUINO with A4-SDA A5-SCL and LCD 16x2 display and access from ESP8266: lcd.begin(sda,scl) or ARDUINO: lcd.begin()

Installation

Create a new folder called "LiquidCrystal_I2C" under the folder named "libraries" in your Arduino sketchbook folder. Create the folder "libraries" in case it does not exist yet. Place all the files in the "LiquidCrystal_I2C" folder.

Usage

To use the library in your on sketch, select it from Sketch > Import Library.

Code example

Code basic example for ESP8266 or ARDUINO see more here examples

#include <LiquidCrystal_I2C.h>

// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup()
{
  // initialize the LCD
  lcd.begin(); // Init with pin default ESP8266 or ARDUINO
  // lcd.begin(0, 2); //ESP8266-01 I2C with pin 0-SDA 2-SCL
  // Turn on the blacklight and print a message.
  lcd.backlight();
  lcd.setCursor(0, 0);

#if defined(ESP8266)
  lcd.print("ESP8266");
#else
  lcd.print("ARDUINO");
#endif

  lcd.setCursor(0, 1);
  lcd.print("Hello, world!");
}

void loop()
{
  // Do nothing here...
}

License

The content is licensed under the MIT license. See License File for more information.

About

Library for the LiquidCrystal LCD display connect I2C bus to an ESP8266 or Arduino board

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages