By dave | August 3, 2020

LiquidCystalIO with PCF8574 i2c backpack

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

PinOption1Option2
0RSEN
1RWRW
2ENRS
3BacklightBacklight
4D4D4
5D5D5
6D6D6
7D7D7

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

Other pages within this category

This site uses cookies to analyse traffic, and to record consent. We also embed Twitter and Youtube content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.