Page 1 of 1
Possibility to invert input on IO port expanders (PCF,MCP)
Posted: 20 Aug 2018, 10:53
by toffel969
Hi
On the "normal"(GPIO) switch input, there is a check box to invert the value (0-->1, 1-->). This option is not available on the I2C expander switch input.
Would it be a big problem to implement that ? Do you see it as a useful feature?
Best regards
Re: Possibility to invert input on IO port expanders (PCF,MCP)
Posted: 21 Aug 2018, 07:30
by TD-er
I don't know how much work it would be to implement in those switch options, but I agree all GPIO pins should at least be treated equal when it comes to options.
But I guess these extra pins should be usable as normal GPIO pins and be usable in all existing plugins.
And that will be a lot of work to do.
Re: Possibility to invert input on IO port expanders (PCF,MCP)
Posted: 21 Aug 2018, 11:35
by toffel969
TD-er wrote: ↑21 Aug 2018, 07:30
I don't know how much work it would be to implement in those switch options, but I agree all GPIO pins should at least be treated equal when it comes to options.
But I guess these extra pins should be usable as normal GPIO pins and be usable in all existing plugins.
And that will be a lot of work to do.
Hi TD-er
Thanks for your reply. I will try to work around using a custom built where I invert the state in the code time being. I am following the "GPIO" handling debate on github and will hang in for the general integration of the IO expanders.
regards