PCF8574 Project Board Code

Hi
Working on increasing the number of buttons to be used to 8. Attachments show before and after. The before one compiles ok. The 8 pin .ino comes up with message at line 11

'no matching function for call to 'PCF8574::PCF8574(int, int, void (&)())'

Need some advice as to a fix.
Note that I have changed from before version the name UNO to NANO, and the address on line 11 to 0x40.
With 8 pins for keypad are they set up as in or out? Button pins only, no leds.
Once compiling will be inserted into another project.

keyPressed_withInterrupt8pin.ino (1.2 KB)
keyPressed_withInterrupt.ino (791 Bytes)

Thankyou
Charles

Please, post sketches and errors in code-formatted text form. (you have been here since 2010)

Do you have the correct library for your sketch? Some libraries have similar names. Verify spelling and "case" (UPPER/lower). Also, some libraries are updated. Verify calls to the library from the sketch match the library.

I looked in one of the PCF8574 (all UPPERCASE, @robtillaart ) library's examples, and this is how the object is created, I am assuming with an I2C address of 0x20 (the error from your function call seems to have three arguments):

PCF8574 pcf20(0x20);

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