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.
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