Page 1 of 1

rework code for hardware

Posted: Tuesday 25 August 2020 0:29
by nielsvissers
i'm in the process of reworking the code for a MCP23017 and also adding the possibility to use it as inputs from within domoticz and not with another process handling them (sollution is mentioned on this forum which works fine)

my question is, do i create a seperate MCP23017 class instead of reworking the I2C class?
to my feeling the way it is written now is different than the sollution i'm working on and more difficult than needed.
i could also add a second MCP23017 hardware type (and MCP23017 class) to preserve the current one.

maybe my feelings are wrong and will this be pointed out to me while programming this

Re: rework code for hardware

Posted: Tuesday 14 November 2023 18:15
by RonEN
Hey nielsvisser,

I am also looking to provide the MCP23017 with inputs via the hardware gateway. Have you already found a solution?

Cheers,
Ronald.