LiquidCystalIO with PCF8574 i2c backpack
03-08-2020
Visit associated GitHub repository
Visit reference documentation page

An I2C LCD backpack based on the PCF8574 chip provides an easy way to get started with LiquidCrystalIO on most Arduino boards. It is usually in one of two configurations as listed below. This library works correctly with the display and even has a shorthand way of creating the LCD for this case.


Connectivity combinations for i2c backpacks

Pin Option1 Option2
0 RS EN
1 RW RW
2 EN RS
3 Backlight Backlight
4 D4 D4
5 D5 D5
6 D6 D6
7 D7 D7

Construction for Option 1 outside of any functions (global):

LiquidCrystalI2C_RS_EN(lcdVariableName, addr, invertBacklight)

Construction for Option 2 outside of any functions (global):

LiquidCrystalI2C_EN_RS(lcdVariableName, addr, invertBacklight)

Where

  • lcdVariableName is the name of the global variable to create
  • addr is the I2C address of the backpack
  • invertBacklight to invert the backlight function. Note that the backlight function can sometimes be inverted.

Examples of connecting to PCF8574 i2c backpack

Back to the main page

These may be of interest

Want to let us know about something?

We use cookies to analyse traffic and to personalise content. We also embed Twitter and Youtube on some pages, these companies have their own privacy policies.

See the privacy policy and terms of use of this site should you need more information or wish to adjust your settings.