rework code for hardware

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
nielsvissers
Posts: 1
Joined: Tuesday 06 August 2019 13:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

rework code for hardware

Post 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
RonEN
Posts: 11
Joined: Tuesday 07 June 2016 10:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: rework code for hardware

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest