Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino IDE demo source code for KC868-A6]--#07-PCF8574-Digital input code
#6
(01-26-2025, 12:59 AM)admin Wrote: here is PCF8574 arduino library we are using.

That is the xreef one. BTW, you also need the I2C "Wire.h" library for your project to work.
Both libraries (RobTillart and Mischianti) are maintained, and they are both using C++ approach : a chip is an object from PCF8574 class.
So the same code is used for bothchips, with only the parameters of the chip stored separately.

However, note that one PCF is for digital inputs and the other for relays, so don't expect too much synergies ;-)
Reply


Messages In This Thread
RE: [Arduino IDE demo source code for KC868-A6]--#07-PCF8574-Digital input code - by tochinet - 06-27-2025, 11:58 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)