rework code for hardware
Posted: Tuesday 25 August 2020 0:29
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
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