avdweb_Switch icon indicating copy to clipboard operation
avdweb_Switch copied to clipboard

PCF8574 or similar I2C

Open chlebow opened this issue 2 years ago • 7 comments

Is it possible use this library with expander PCF8574 or similar I2C?

chlebow avatar Aug 02 '22 09:08 chlebow

I added this to the article: process The member function process() makes it possible to use the library in case the buttons are not directly connected to the microcontroller, but for example via an I2C expander PCF8574. I have also successfully used process() in the two-wire current-controlled bus. Up to version 1.0.5 the function process has been tested.

avandalen avatar Aug 04 '22 07:08 avandalen

Thank you for your response. Could you send a short application example as I am not advanced enough. Thank you.

chlebow avatar Aug 04 '22 08:08 chlebow

here is the temporary link copy it and keep it private. https://drive.google.com/drive/folders/1NX9dxHmMQatnGJzJPplcIcX8PmGATut4?usp=sharing

avandalen avatar Aug 04 '22 10:08 avandalen

But I cant help you further, have no time..

avandalen avatar Aug 04 '22 10:08 avandalen

I am looking to do the same with a MCP23008 using IC2 would it be possible to send me the example as well? Thanks

AJTaylor79 avatar Nov 12 '22 23:11 AJTaylor79

AJTaylor79 You could use Albert lib with my modification - witch process() function.

chlebow avatar Nov 28 '22 18:11 chlebow

The process() function no longer works as intended. I therefore had to use an old version of the library for a project. I don't have time to work on this.

avandalen avatar Nov 29 '22 10:11 avandalen