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
#9
(06-30-2025, 02:07 PM)ksarz Wrote: Hi! The Arduino.h and pcf8574.h librsrys on must be in the SAME  directory or different ones?

The usual rule is that 
#include <library1.h> // is for libraries in your library forlder
#include "library2.h" // is for libraries in the same directory as your .ino file.

You can go both ways, but the .zip file given by the admin is 20MB big (lots of "resources', most unrelated to KC868), while the .h and .cpp (the only two files needed) are 40kB. However, if you copy locally (my preference), you'll have to do that in all the directories if you have several programs.

BTW, the WifiManager.h library is not by default in my library folder either. I downloaded it using the library manager. The PCF8574 library is there as well, but you may need to scroll down a lot, it is called "PCF8574 library by Renzo Mischianti". It is now version 2.3.7, more recent than the .zip file, but that shouldn't make a difference.
Reply


Messages In This Thread
RE: [Arduino IDE demo source code for KC868-A6]--#07-PCF8574-Digital input code - by tochinet - 07-01-2025, 04:33 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)