[title]PCF8575 Management Class with cool addins[/title]
There are 2 classes in my driver. One is for I2CManagement, that you’ll be able to reuse for any other device, and one for the PCF8575. The second class embed all the plumbing to manage IO, using a DeviceIO class tha enable to predefine your IO structure, and manage triggers on changed inputs.
the I2CManager is implemented using singleton pattern, that manage locked accesses from several processus so that you can normally use it in a multithread perspective.
Enjoy trying these, and if you have any idea on methods to add, reply !