Which libraries are atleast minmum required for using pcf8574 I2c module for interfacing LCD with arduino?

Which libraries are atleast minmum required for using pcf8574 I2c module for interfacing LCD with arduino?

'wire' Library
and/or
'spi' library
and/or
'LiquidCrystal_I2C' library?

This is the only library you need with or without a pcf8574: HD44870 LCD Library

1 Like

the PCF8574 is a I2C port expander, so you will need a LCD library for I2C.

Lot of I2C LCD libraries include the Wire.h in the background. Some don't and you can chose another I2C Library if needed. In my LCD library you would include the Wire.h in the user sketch.

SPI is a different bus - it makes no sense in the context of a PCF8574. But there are LCD libraries which support port expanders based on SPI also (e.g. MCP23S17 or MCP23S08)

This is my LCD library
https://werner.rothschopf.net/202009_arduino_liquid_crystal_i2c_en.htm

In general:
what ever you use - follow the examples provided with the library.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.