Hi All, I am writing a library to support the 74C923, a chip that manages a 4X5 keypad. (I will post the library on the playground once completed) It's working well in its present form, but what I would like to do is to be able to pass a function to the class constructor and have the class remember the function throughout the program's running. This would be similar to the attachInterrupt() routine. The user would write the function that would handle key presses; the rest of the housekeeping would be handled by the chip and the class.
I've researched this a bunch and am having difficulty with the code. I think I understand how to pass a function as a parameter to another function, but I don't know how to store the address in a variable in the class. Or can't I do that at all?
Appreciate any help offered.
Thanks. Ed Ringel