03-05-2025, 05:29 PM
hello
I downloaded the zip file "KC868-A16 Web_Server" when I compile it I get
the following error message
I'm still a beginner with KC868-A16 and need help
thank you in advance
/home/arduino/Downloads/KC868-A16_Web_Server/KC868-A16_Web_Server.ino:50:36: error: no matching function for call to 'PCF8574:
CF8574(TwoWire*, int, int, int)'
50 | PCF8574 pcf8574_I1(&I2Cone,0x3A,4,5);
| ^
In file included from /home/arduino/Downloads/KC868-A16_Web_Server/KC868-A16_Web_Server.ino:8:
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate: 'PCF8574:
CF8574(uint8_t, TwoWire*)'
30 | explicit PCF8574(const uint8_t deviceAddress = 0x20, TwoWire *wire = &Wire);
| ^~~~~~~
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate expects 2 arguments, 4 provided
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:
CF8574(const PCF8574&)'
27 | class PCF8574
| ^~~~~~~
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:
CF8574(PCF8574&&)'
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/home/arduino/Downloads/KC868-A16_Web_Server/KC868-A16_Web_Server.ino:51:36: error: no matching function for call to 'PCF8574:
CF8574(TwoWire*, int, int, int)'
51 | PCF8574 pcf8574_I2(&I2Cone,0x39,4,5);
| ^
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate: 'PCF8574:
CF8574(uint8_t, TwoWire*)'
30 | explicit PCF8574(const uint8_t deviceAddress = 0x20, TwoWire *wire = &Wire);
| ^~~~~~~
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate expects 2 arguments, 4 provided
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:
CF8574(const PCF8574&)'
27 | class PCF8574
| ^~~~~~~
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:
CF8574(PCF8574&&)'
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/home/arduino/Downloads/KC868-A16_Web_Server/KC868-A16_Web_Server.ino:52:36: error: no matching function for call to 'PCF8574:
CF8574(TwoWire*, int, int, int)'
52 | PCF8574 pcf8574_R1(&I2Cone,0x3C,4,5);
| ^
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate: 'PCF8574:
CF8574(uint8_t, TwoWire*)'
30 | explicit PCF8574(const uint8_t deviceAddress = 0x20, TwoWire *wire = &Wire);
| ^~~~~~~
and more errors
.
.
.
.
exit status 1
Compilation error: no matching function for call to 'PCF8574:
CF8574(TwoWire*, int, int, int)'
I downloaded the zip file "KC868-A16 Web_Server" when I compile it I get
the following error message
I'm still a beginner with KC868-A16 and need help
thank you in advance
/home/arduino/Downloads/KC868-A16_Web_Server/KC868-A16_Web_Server.ino:50:36: error: no matching function for call to 'PCF8574:
CF8574(TwoWire*, int, int, int)'50 | PCF8574 pcf8574_I1(&I2Cone,0x3A,4,5);
| ^
In file included from /home/arduino/Downloads/KC868-A16_Web_Server/KC868-A16_Web_Server.ino:8:
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate: 'PCF8574:
CF8574(uint8_t, TwoWire*)'30 | explicit PCF8574(const uint8_t deviceAddress = 0x20, TwoWire *wire = &Wire);
| ^~~~~~~
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate expects 2 arguments, 4 provided
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:
CF8574(const PCF8574&)'27 | class PCF8574
| ^~~~~~~
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:
CF8574(PCF8574&&)'/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/home/arduino/Downloads/KC868-A16_Web_Server/KC868-A16_Web_Server.ino:51:36: error: no matching function for call to 'PCF8574:
CF8574(TwoWire*, int, int, int)'51 | PCF8574 pcf8574_I2(&I2Cone,0x39,4,5);
| ^
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate: 'PCF8574:
CF8574(uint8_t, TwoWire*)'30 | explicit PCF8574(const uint8_t deviceAddress = 0x20, TwoWire *wire = &Wire);
| ^~~~~~~
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate expects 2 arguments, 4 provided
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:
CF8574(const PCF8574&)'27 | class PCF8574
| ^~~~~~~
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574:
CF8574(PCF8574&&)'/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:27:7: note: candidate expects 1 argument, 4 provided
/home/arduino/Downloads/KC868-A16_Web_Server/KC868-A16_Web_Server.ino:52:36: error: no matching function for call to 'PCF8574:
CF8574(TwoWire*, int, int, int)'52 | PCF8574 pcf8574_R1(&I2Cone,0x3C,4,5);
| ^
/home/arduino/Arduino/libraries/PCF8574/PCF8574.h:30:12: note: candidate: 'PCF8574:
CF8574(uint8_t, TwoWire*)'30 | explicit PCF8574(const uint8_t deviceAddress = 0x20, TwoWire *wire = &Wire);
| ^~~~~~~
and more errors
.
.
.
.
exit status 1
Compilation error: no matching function for call to 'PCF8574:
CF8574(TwoWire*, int, int, int)'

